RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
RST::String::Literals Namespace Reference

String hashes as literals, to switch on strings: case "start"_hash:. More...

Functions

consteval std::uint64_t operator""_hash (const char *str, std::size_t size) noexcept
 Hashes a string literal at compile time.
 

Detailed Description

String hashes as literals, to switch on strings: case "start"_hash:.

Function Documentation

◆ operator""_hash()

consteval std::uint64_t RST::String::Literals::operator""_hash ( const char *  str,
std::size_t  size 
)
noexcept

Hashes a string literal at compile time.