BAN: overloaded operator== for more types

This commit is contained in:
2022-12-13 20:55:09 +02:00
parent fd6e0ed0f7
commit 5345b6b8c3
4 changed files with 34 additions and 2 deletions
+2
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);
+3 -1
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;