tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_scoped_enum.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_SCOPED_ENUM_HPP
4#define TETL_TYPE_TRAITS_IS_SCOPED_ENUM_HPP
5
10
11namespace etl {
12
13template <typename T>
15
16template <typename T>
17 requires is_enum_v<T>
18struct is_scoped_enum<T> : bool_constant<not is_convertible_v<T, underlying_type_t<T>>> { };
19
26template <typename T>
28
29} // namespace etl
30
31#endif // TETL_TYPE_TRAITS_IS_SCOPED_ENUM_HPP
Definition adjacent_find.hpp:8
constexpr bool is_enum_v
Definition is_enum.hpp:16
constexpr bool is_scoped_enum_v
Checks whether T is an scoped enumeration type. Provides the member constant value which is equal to ...
Definition is_scoped_enum.hpp:27
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
bool_constant< false > false_type
Definition bool_constant.hpp:14
static constexpr bool value
Definition integral_constant.hpp:10
Definition is_scoped_enum.hpp:14