|
Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
|
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 |
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.