|
Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
|
Transparent hash/equality for maps keyed by fixed_string. More...
#include <utils/fixed_string.hpp>
Public Types | |
| using | is_transparent = void |
Public Member Functions | |
| size_t | operator() (std::string_view value) const noexcept |
Transparent hash/equality for maps keyed by fixed_string.
is_transparent is what lets a lookup take a std::string_view (or a bare const char* from a wire field) without materialising the key type first, so the common already-present case costs no construction at all. fixed_string converts to string_view implicitly, so keys hash identically either way.
Definition at line 102 of file fixed_string.hpp.
| using slick::sim::utils::StringViewHash::is_transparent = void |
Definition at line 103 of file fixed_string.hpp.
|
inlinenoexcept |
Definition at line 104 of file fixed_string.hpp.