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// SPDX-FileCopyrightText: Copyright (C) 2024 Tobias Hienzsch
3
4#ifndef TETL_TYPE_TRAITS_IS_BUILTIN_UNSIGNED_INTEGER_HPP
5#define TETL_TYPE_TRAITS_IS_BUILTIN_UNSIGNED_INTEGER_HPP
6
7#include <etl/_mpl/contains.hpp>
8#include <etl/_type_traits/bool_constant.hpp>
9#include <etl/_type_traits/remove_cv.hpp>
10
11namespace etl {
12
13/// True if T is `unsigned char` or `unsigned short` or `unsigned int` or `unsigned long` or `unsigned long long`
14template <typename T>
16 : bool_constant<mpl::contains_v<
17 remove_cv_t<T>,
18 mpl::list<unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long>
19 >> { };
20
21/// \relates is_builtin_unsigned_integer
22template <typename T>
24
25} // namespace etl
26
27#endif // TETL_TYPE_TRAITS_IS_BUILTIN_UNSIGNED_INTEGER_HPP
Definition at.hpp:10
Definition adjacent_find.hpp:9
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:19
constexpr auto is_builtin_unsigned_integer_v
Definition is_builtin_unsigned_integer.hpp:23
Definition list.hpp:11