tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_enum.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_TYPE_TRAITS_IS_ENUM_HPP
4
#define TETL_TYPE_TRAITS_IS_ENUM_HPP
5
6
#include <
etl/_config/all.hpp
>
7
8
#include <
etl/_type_traits/bool_constant.hpp
>
9
10
namespace
etl
{
11
12
template
<
typename
T>
13
struct
is_enum
:
bool_constant
<__is_enum(T)> { };
14
15
template
<
typename
T>
16
inline
constexpr
bool
is_enum_v
= __is_enum(T);
17
18
}
// namespace etl
19
20
#endif
// TETL_TYPE_TRAITS_IS_ENUM_HPP
all.hpp
bool_constant.hpp
etl
Definition
adjacent_find.hpp:8
etl::is_enum_v
constexpr bool is_enum_v
Definition
is_enum.hpp:16
etl::bool_constant
integral_constant< bool, B > bool_constant
Definition
bool_constant.hpp:11
etl::is_enum
Definition
is_enum.hpp:13
include
etl
_type_traits
is_enum.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0