CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::literals Namespace Reference

Functions

constexpr StringID::Hash operator""_id (const char *string, const std::size_t length)
 A useful literal to hash a string.
 

Function Documentation

◆ operator""_id()

constexpr StringID::Hash CeresEngine::literals::operator""_id ( const char string,
const std::size_t  length 
)
constexpr

A useful literal to hash a string.

Note
Since this function does not check for collisions only use it to compare a StringID. It is also useful in places where a compile-time constant is needed.