xlnt
Public Member Functions | List of all members
xlnt::scoped_enum_hash< Enum > Struct Template Reference

Allows a scoped enum (aka "enum class") to be used as a key in a std::unordered_map. More...

#include <scoped_enum_hash.hpp>

Public Member Functions

std::size_t operator() (Enum e) const
 Cast the enumeration e to a std::size_t and hash that value using std::hash. More...
 

Detailed Description

template<typename Enum>
struct xlnt::scoped_enum_hash< Enum >

Allows a scoped enum (aka "enum class") to be used as a key in a std::unordered_map.

Member Function Documentation

◆ operator()()

template<typename Enum >
std::size_t xlnt::scoped_enum_hash< Enum >::operator() ( Enum  e) const
inline

Cast the enumeration e to a std::size_t and hash that value using std::hash.


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