SlHelpers
SlHelpers::String::Hash Struct Reference

Hash for string and string_view to be used in hashing containers. More...

#include <String.h>

Public Types

using is_transparent = void
 For containers to know this is a transparent hash.
 

Public Member Functions

auto hash (std::string_view sv) const noexcept
 Hash any kind of string using std::hash. More...
 
size_t operator() (const char *charp) const noexcept
 Hash charp.
 
size_t operator() (std::string_view sv) const noexcept
 Hash string_view sv.
 
size_t operator() (const std::string &s) const noexcept
 Hash string s.
 

Detailed Description

Hash for string and string_view to be used in hashing containers.

It is to support find() to work on both string and string_view.

Member Function Documentation

◆ hash()

auto SlHelpers::String::Hash::hash ( std::string_view  sv) const
inlinenoexcept

Hash any kind of string using std::hash.

Parameters
svString to hash

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