emlabcpp
modern opinionated embedded C++ library
std::hash< T > Struct Template Reference

Hash of quantity is hash of it's value and Derived::get_unit() xored. More...

#include <quantity.h>

Public Member Functions

std::size_t operator() (T q) const
 

Detailed Description

template<emlabcpp::quantity_derived T>
struct std::hash< T >

Hash of quantity is hash of it's value and Derived::get_unit() xored.

Member Function Documentation

◆ operator()()

template<emlabcpp::quantity_derived T>
std::size_t std::hash< T >::operator() ( q) const
inline

TODO: this should be rewritten 'reverse' the prefix+unit info in bits and than xor it with number


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