|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Non-owning view that defers a value's hash computation to formatting time. More...
#include <hash.hpp>
Public Member Functions | |
| constexpr | hash_view (const T &val RELOCO_LIFETIMEBOUND) noexcept |
| Constructs a hash view referencing an existing value. | |
| constexpr | hash_view (const T &&)=delete |
| std::size_t | compute_hash () const noexcept |
| Computes the hash of the referenced value. | |
Non-owning view that defers a value's hash computation to formatting time.
| T | Hashable value type. |
|
inlineexplicitconstexprnoexcept |
Constructs a hash view referencing an existing value.
| val | Value whose std::hash result will be formatted. |
|
explicitconstexprdelete |
|
inlinenoexcept |
Computes the hash of the referenced value.
std::hash<T>{} applied to the stored value.