ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
No Matches
hash< alib::strings::TString< TChar > > Struct Template Reference


template<typename TChar>
struct alib::strings::compatibility::std::hash< alib::strings::TString< TChar > >

Specialization of functor std::hash for type String . Note that this specialization can also be used in combination with derived string types, like AString .

This specialization is provided with the inclusion of header file alib/compatibility/std_strings_functional.hpp .

While the documentation indicates namespace alib::strings::compatibility::std, the true location is namespace std (as mandatory).
Template Parameters
TCharThe character type of the string.

Definition at line 76 of file std_strings_functional.hpp.

#include <std_strings_functional.hpp>

Public Method Index:

std::size_t operator() (const alib::strings::TString< TChar > &src) const

Method Details:

◆ operator()()

template<typename TChar >
std::size_t operator() ( const alib::strings::TString< TChar > & src) const

Calculates the hash code for ALib strings.

srcThe string object to hash.
The hash code.

Definition at line 83 of file std_strings_functional.hpp.

Here is the call graph for this function:

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