4#ifndef TETL_UTILITY_TO_UNDERLYING_HPP
5#define TETL_UTILITY_TO_UNDERLYING_HPP
7#include <etl/_type_traits/underlying_type.hpp>
14template <
typename Enum>
15[[nodiscard]]
constexpr auto to_underlying(Enum e)
noexcept -> underlying_type_t<Enum>
17 return static_cast<underlying_type_t<Enum>>(e);
Definition adjacent_find.hpp:9
constexpr auto to_underlying(Enum e) noexcept -> underlying_type_t< Enum >
Converts an enumeration to its underlying type.
Definition to_underlying.hpp:15