userver: userver/utils/underlying_value.hpp File Reference
Loading...
Searching...
No Matches
underlying_value.hpp File Reference

Detailed Description

Function that extracts integral value from enum or StrongTypedef.

Definition in file underlying_value.hpp.

Go to the source code of this file.

#include <type_traits>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  utils
 Utilities.
 

Functions

template<class T , std::enable_if_t< std::is_enum_v< T >, int > = 0>
constexpr auto utils::UnderlyingValue (T v) noexcept
 Function that extracts integral value from enum or StrongTypedef.