Nameless Engine
Loading...
Searching...
No Matches
StdHashes.hpp
1#pragma once
2
3// Standard.
4#include <string>
5#include <string_view>
6#include <cstddef>
7
8namespace ne {
12 using is_transparent = void;
13
19 std::size_t operator()(const char* pText) const { return std::hash<std::string_view>{}(pText); }
20
26 std::size_t operator()(std::string_view text) const { return std::hash<std::string_view>{}(text); }
27
33 std::size_t operator()(std::string const& text) const { return std::hash<std::string_view>{}(text); }
34 };
35}
Definition: StdHashes.hpp:10
std::size_t operator()(std::string_view text) const
Definition: StdHashes.hpp:26
std::size_t operator()(const char *pText) const
Definition: StdHashes.hpp:19
std::size_t operator()(std::string const &text) const
Definition: StdHashes.hpp:33
void is_transparent
Definition: StdHashes.hpp:12