qb
2.0.0.0
C++17 Actor Framework
|
Specialization of std::hash for qb::TimePoint. More...
#include <timestamp.h>
Public Member Functions | |
size_t | operator() (const qb::TimePoint &time_point) const noexcept |
Hash function operator for TimePoint. |
Specialization of std::hash for qb::TimePoint.
This hash specialization enables TimePoint objects to be used as keys in unordered associative containers like std::unordered_set and std::unordered_map. The hash is computed from the internal nanoseconds-since-epoch count.
|
inlinenoexcept |
Hash function operator for TimePoint.
time_point | The TimePoint to hash |