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`
14/// \ingroup type_traits
15template <typename T>
17 : bool_constant<mpl::contains_v<
18 remove_cv_t<T>,
19 mpl::list<unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long>
20 >> { };
21
22/// \relates is_builtin_unsigned_integer
23/// \ingroup type_traits
24template <typename T>
26
27/// @}
28
29} // namespace etl
30
31#endif // TETL_TYPE_TRAITS_IS_BUILTIN_UNSIGNED_INTEGER_HPP
constexpr auto is_builtin_unsigned_integer_v
Definition is_builtin_unsigned_integer.hpp:25
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:20
Definition list.hpp:11