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
3template <typename Enum>
4constexpr auto to_underlying(Enum e) noexcept {
5 return static_cast<std::underlying_type_t<Enum>>(e);
6}
constexpr auto to_underlying(Enum e) noexcept
Definition enum_utils.hpp:4