Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
enum_utils.hpp
Go to the documentation of this file.
1
#pragma once
2
3
template
<
typename
Enum>
4
constexpr
auto
to_underlying
(Enum e)
noexcept
{
5
return
static_cast<
std::underlying_type_t<Enum>
>
(e);
6
}
to_underlying
constexpr auto to_underlying(Enum e) noexcept
Definition
enum_utils.hpp:4
master
include
enum_utils.hpp
Generated by
1.9.8