BAN: overloaded operator== for more types
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user