tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_builtin_unsigned_integer.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_BUILTIN_UNSIGNED_INTEGER_HPP
4#define TETL_TYPE_TRAITS_IS_BUILTIN_UNSIGNED_INTEGER_HPP
5
9
10namespace etl {
11
13template <typename T>
15 : bool_constant<meta::contains_v<
16 remove_cv_t<T>,
17 meta::list<unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long>>> { };
18
20template <typename T>
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_IS_BUILTIN_UNSIGNED_INTEGER_HPP
Definition adjacent_find.hpp:8
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
static constexpr bool value
Definition integral_constant.hpp:10
True if T is unsigned char or unsigned short or unsigned int or unsigned long or unsigned long long
Definition is_builtin_unsigned_integer.hpp:17
constexpr auto is_builtin_unsigned_integer_v
Definition is_builtin_unsigned_integer.hpp:21