BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
bst::template_tools Namespace Reference

Functions

template<typename E >
constexpr auto to_underlying (E e) noexcept
 Converts an enum class to its underlying type. More...
 

Function Documentation

◆ to_underlying()

template<typename E >
constexpr auto bst::template_tools::to_underlying ( e)
constexprnoexcept

Converts an enum class to its underlying type.

Template Parameters
E- The enum class type.
Parameters
e- The enum class to convert.
Returns
constexpr auto - The underlying type of the enum class.

[https://stackoverflow.com/questions/8357240/]