Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::enum_hash< T > Struct Template Reference

#include <types.hpp>

Public Types

using underlying_type = typename std::underlying_type<T>::type
 

Public Member Functions

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

Detailed Description

template<typename T>
struct sysio::chain::enum_hash< T >

Definition at line 308 of file types.hpp.

Member Typedef Documentation

◆ underlying_type

template<typename T >
using sysio::chain::enum_hash< T >::underlying_type = typename std::underlying_type<T>::type

Definition at line 312 of file types.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
std::size_t sysio::chain::enum_hash< T >::operator() ( T t) const
inline

Definition at line 314 of file types.hpp.

315 {
316 return std::hash<underlying_type>{}( static_cast<underlying_type>(t) );
317 }
typename std::underlying_type< T >::type underlying_type
Definition types.hpp:312

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