|
LBANN
0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
|
Hash function for enumeration type. More...
#include <hash.hpp>
Public Types | |
| using | underlying_t = typename std::conditional< std::is_enum< T >::value, typename std::underlying_type< T >::type, T >::type |
Public Member Functions | |
| std::size_t | operator() (T val) const |
Hash function for enumeration type.
Equivalent to std::hash if the input is not an enumeration type.
| using lbann::enum_hash< T >::underlying_t = typename std::conditional<std::is_enum<T>::value, typename std::underlying_type<T>::type, T>::type |
|
inline |