tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_builtin_signed_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_SIGNED_INTEGER_HPP
5#define TETL_TYPE_TRAITS_IS_BUILTIN_SIGNED_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/// \ingroup type_traits
14template <typename T>
16 : bool_constant<mpl::contains_v<remove_cv_t<T>, mpl::list<signed char, short, int, long, long long>>> { };
17
18/// \relates is_builtin_signed_integer
19/// \ingroup type_traits
20template <typename T>
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_IS_BUILTIN_SIGNED_INTEGER_HPP
constexpr auto is_builtin_signed_integer_v
Definition is_builtin_signed_integer.hpp:21
Definition at.hpp:10
Definition adjacent_find.hpp:9
Definition is_builtin_signed_integer.hpp:16
Definition list.hpp:11