mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-10 03:55:43 -04:00
also add overloads for std::string
This commit is contained in:
parent
982e8ab669
commit
a19d26d52e
1 changed files with 6 additions and 0 deletions
|
@ -96,11 +96,17 @@ namespace gd {
|
|||
bool operator==(char const* other) const {
|
||||
return *this == std::string_view(other);
|
||||
}
|
||||
bool operator==(std::string const& other) const {
|
||||
return *this == std::string_view(other);
|
||||
}
|
||||
std::strong_ordering operator<=>(string const& other) const;
|
||||
std::strong_ordering operator<=>(std::string_view const other) const;
|
||||
std::strong_ordering operator<=>(char const* other) const {
|
||||
return *this <=> std::string_view(other);
|
||||
}
|
||||
std::strong_ordering operator<=>(std::string const& other) const {
|
||||
return *this <=> std::string_view(other);
|
||||
}
|
||||
|
||||
operator std::string() const;
|
||||
operator std::string_view() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue