Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
Loading...
Searching...
No Matches
std::hash< units::any_unit > Struct Reference

hashes an erased quantity by its dimension signature and SI-base magnitude, so any_unit is usable as an unordered-container key. More...

#include <serialization.h>

Public Member Functions

std::size_t operator() (const units::any_unit &value) const noexcept

Detailed Description

hashes an erased quantity by its dimension signature and SI-base magnitude, so any_unit is usable as an unordered-container key.

Consistent with operator==: two erased quantities that compare equal (same dimension and base value) hash equally.


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