BAN: overloaded operator== for more types

This commit is contained in:
Bananymous
2022-12-13 20:55:09 +02:00
parent fd6e0ed0f7
commit 5345b6b8c3
4 changed files with 34 additions and 2 deletions

View File

@@ -37,6 +37,8 @@ namespace BAN
char& operator[](size_type);
bool operator==(const String&) const;
bool operator==(StringView) const;
bool operator==(const char*) const;
ErrorOr<void> Resize(size_type, char = '\0');
ErrorOr<void> Reserve(size_type);

View File

@@ -18,7 +18,9 @@ namespace BAN
char operator[](size_type) const;
bool operator==(const StringView&) const;
bool operator==(const String&) const;
bool operator==(StringView) const;
bool operator==(const char*) const;
StringView Substring(size_type, size_type = -1) const;