Function operator""_hs

Synopsis

#include <src/entt/core/hashed_string.hpp>

constexpr entt::hashed_string operator""_hs(const char *str, std::size_t) noexcept

Description

User defined literal for hashed strings.

Parameters

str - The literal without its suffix.

Returns
A properly initialized hashed string.

Source

Lines 248-250 in src/entt/core/hashed_string.hpp.

[[nodiscard]] constexpr entt::hashed_string operator"" _hs(const char *str, std::size_t) ENTT_NOEXCEPT {
    return entt::hashed_string{str};
}





Add Discussion

Log in to comment