order_book 0.3.0
Exchange feed order book that prints the best bid and offer
Loading...
Searching...
No Matches
order_book::StringHash Struct Reference

Hash that lets string-keyed unordered containers look up a std::string_view without a copy. More...

#include <order_book.hpp>

Public Types

using is_transparent = void
 Enables heterogeneous lookup.
using is_avalanching = void

Public Member Functions

std::uint64_t operator() (std::string_view text) const noexcept
 Hash of the characters, equal for a std::string and a view of it.

Detailed Description

Hash that lets string-keyed unordered containers look up a std::string_view without a copy.

Definition at line 18 of file order_book.hpp.

Member Typedef Documentation

◆ is_avalanching

Tells unordered_dense that the hash needs no extra mixing

Definition at line 20 of file order_book.hpp.

◆ is_transparent

Enables heterogeneous lookup.

Definition at line 19 of file order_book.hpp.

Member Function Documentation

◆ operator()()

std::uint64_t order_book::StringHash::operator() ( std::string_view text) const
inlinenodiscardnoexcept

Hash of the characters, equal for a std::string and a view of it.

Definition at line 22 of file order_book.hpp.


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