Nameless Engine
Loading...
Searching...
No Matches
ne::StdStringHash Struct Reference

#include <StdHashes.hpp>

Public Types

using is_transparent = void
 

Public Member Functions

std::size_t operator() (const char *pText) const
 
std::size_t operator() (std::string_view text) const
 
std::size_t operator() (std::string const &text) const
 

Detailed Description

Used for find in map to work with std::string_view while the key is std::string.

Member Typedef Documentation

◆ is_transparent

Member Function Documentation

◆ operator()() [1/3]

std::size_t ne::StdStringHash::operator() ( const char *  pText) const
inline

Calculates hash.

Parameters
pTextText to hash.
Returns
Hash.

◆ operator()() [2/3]

std::size_t ne::StdStringHash::operator() ( std::string const &  text) const
inline

Calculates hash.

Parameters
textText to hash.
Returns
Hash.

◆ operator()() [3/3]

std::size_t ne::StdStringHash::operator() ( std::string_view  text) const
inline

Calculates hash.

Parameters
textText to hash.
Returns
Hash.

The documentation for this struct was generated from the following file: