Fixes missing documentation

This commit is contained in:
Deukhoofd 2022-03-23 14:15:48 +01:00
parent 3b19f8b268
commit eda1a29427
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 0 deletions

View File

@ -124,13 +124,17 @@ namespace ArbUt {
/// @return std::string_view.
[[nodiscard]] inline std::string_view std_str() const noexcept final { return _str->GetValue(); }
/// @brief Check equality with standard C++ string.
inline constexpr bool operator==(const std::string_view& rhs) const noexcept final {
return _hash == Hash(rhs.data());
}
/// @brief Check inequality with standard C++ string.
inline constexpr bool operator!=(const std::string_view& rhs) const noexcept final {
return _hash != Hash(rhs.data());
}
/// @brief Check equality with standard C style string.
inline constexpr bool operator==(const char* non_null rhs) const noexcept final { return _hash == Hash(rhs); }
/// @brief Check inequality with standard C style string.
inline constexpr bool operator!=(const char* non_null rhs) const noexcept final { return _hash != Hash(rhs); }
/// @brief Calculates the hash for a given C string.