From cb9fa588ba8144fcdd52ba4b83d69d93fb18066f Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 30 Mar 2025 23:08:43 -0500 Subject: Add hash map. --- include/fud_string.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/fud_string.hpp') diff --git a/include/fud_string.hpp b/include/fud_string.hpp index 4b3dbe2..1d724f0 100644 --- a/include/fud_string.hpp +++ b/include/fud_string.hpp @@ -294,11 +294,11 @@ class String { /** \brief Returns the first character in the sequence if the length is * greater than zero. */ - [[nodiscard]] Option front(); + [[nodiscard]] Option front() const; /** \brief Returns the last character in the sequence if the length is * greater than zero. */ - [[nodiscard]] Option back(); + [[nodiscard]] Option back() const; /** \brief Append a character to the back of the string, growing it if necessary. */ FudStatus pushBack(char letter); @@ -338,7 +338,7 @@ class String { /** @copydoc String::drain(const char* source) */ DrainResult drain(StringView source); - [[nodiscard]] bool compare(const String& rhs) const; + [[nodiscard]] bool operator==(const String& rhs) const; FudStatus clear(); -- cgit v1.2.3