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
3
#ifndef TETL_TYPE_TRAITS_IS_BUILTIN_SIGNED_INTEGER_HPP
4
#define TETL_TYPE_TRAITS_IS_BUILTIN_SIGNED_INTEGER_HPP
5
6
#include <
etl/_meta/contains.hpp
>
7
#include <
etl/_type_traits/bool_constant.hpp
>
8
#include <
etl/_type_traits/remove_cv.hpp
>
9
10
namespace
etl
{
11
12
template
<
typename
T>
13
struct
is_builtin_signed_integer
14
:
bool_constant
<meta::contains_v<remove_cv_t<T>, meta::list<signed char, short, int, long, long long>>> { };
15
17
template
<
typename
T>
18
inline
constexpr
auto
is_builtin_signed_integer_v
=
is_builtin_signed_integer<T>::value
;
19
20
}
// namespace etl
21
22
#endif
// TETL_TYPE_TRAITS_IS_BUILTIN_SIGNED_INTEGER_HPP
bool_constant.hpp
contains.hpp
etl
Definition
adjacent_find.hpp:8
etl::bool_constant
integral_constant< bool, B > bool_constant
Definition
bool_constant.hpp:11
remove_cv.hpp
etl::integral_constant< bool, B >::value
static constexpr bool value
Definition
integral_constant.hpp:10
etl::is_builtin_signed_integer
Definition
is_builtin_signed_integer.hpp:14
etl::is_builtin_signed_integer::is_builtin_signed_integer_v
constexpr auto is_builtin_signed_integer_v
Definition
is_builtin_signed_integer.hpp:18
include
etl
_type_traits
is_builtin_signed_integer.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0