OGS
cpp23.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <type_traits>
14
15
// ToDo (tm) remove with c++23
16
17
namespace
BaseLib
18
{
29
template
<
typename
E>
30
constexpr
auto
to_underlying
(E e) noexcept
31
{
32
return
static_cast<
std::underlying_type_t<E>
>
(e);
33
}
34
}
// namespace BaseLib
BaseLib
Definition:
TestDefinition.h:19
BaseLib::to_underlying
constexpr auto to_underlying(E e) noexcept
Converts an enumeration to its underlying type.
Definition:
cpp23.h:30
BaseLib
cpp23.h
Generated by
1.9.1