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
13template <typename T>
15 : bool_constant<mpl::contains_v<remove_cv_t<T>, mpl::list<signed char, short, int, long, long long>>> { };
16
17/// \relates is_builtin_signed_integer
18template <typename T>
20
21} // namespace etl
22
23#endif // TETL_TYPE_TRAITS_IS_BUILTIN_SIGNED_INTEGER_HPP
Definition at.hpp:10
Definition adjacent_find.hpp:9
Definition is_builtin_signed_integer.hpp:15
constexpr auto is_builtin_signed_integer_v
Definition is_builtin_signed_integer.hpp:19
Definition list.hpp:11