5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MAKE_SIGNED_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MAKE_SIGNED_HPP_
37template <
typename Type,
typename = arene::base::constra
ints<>>
43template <
typename Type>
46 arene::base::constraints<
47 enable_if_t<is_integral_v<Type>>,
48 enable_if_t<is_signed_v<Type>>,
49 enable_if_t<!is_same_v<Type, bool>>,
50 enable_if_t<!is_const_v<Type>>,
51 enable_if_t<!is_volatile_v<Type>>>> {
59template <
typename Type>
62 arene::base::constraints<
63 enable_if_t<is_integral_v<Type> || is_enum_v<Type>>,
64 enable_if_t<is_const_v<Type>>,
65 enable_if_t<!is_volatile_v<Type>>>> {
73template <
typename Type>
76 arene::base::constraints<
77 enable_if_t<is_integral_v<Type> || is_enum_v<Type>>,
78 enable_if_t<is_volatile_v<Type>>,
79 enable_if_t<!is_const_v<Type>>>> {
87template <
typename Type>
90 arene::base::constraints<
91 enable_if_t<is_integral_v<Type> || is_enum_v<Type>>,
92 enable_if_t<is_const_v<Type>>,
93 enable_if_t<is_volatile_v<Type>>>> {
150template <
size_t Size,
typename = arene::base::constra
ints<>>
155template <
size_t Size>
163template <
size_t Size>
173template <
size_t Size>
177 arene::base::constraints<enable_if_t<(Size > sizeof(short))>,
enable_if_t<Size == sizeof(int)>>> {
184template <
size_t Size>
188 arene::base::constraints<enable_if_t<(Size > sizeof(int))>,
enable_if_t<Size == sizeof(long)>>> {
196template <
size_t Size>
200 arene::base::constraints<enable_if_t<(Size > sizeof(long))>,
enable_if_t<Size == sizeof(long long)>>> {
233template <
typename Type>
237 constraints<enable_if_t<is_enum_v<Type>>, enable_if_t<!is_const_v<Type>>, enable_if_t<!is_volatile_v<Type>>>> {
246template <
typename Type>
251template <
typename Type>
Public export header for the constraints subpackage.
Definition accumulate.hpp:36
Definition make_signed.hpp:33
typename make_signed< Type >::type make_signed_t
A type alias for the equivalent signed type for integral and enumeration types other than bool.
Definition make_signed.hpp:252
typename add_volatile< Type >::type add_volatile_t
Add volatile to the provided type. An alias for the modified type.
Definition add_volatile.hpp:29
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
typename add_const< Type >::type add_const_t
Add const to the provided type. An alias for the modified type.
Definition add_const.hpp:27
make_signed_detail::make_signed< Type > make_signed
A type trait to provide the equivalent signed type for integral and enumeration types other than bool...
Definition make_signed.hpp:247
add_const_t< typename make_signed< remove_cv_t< Type > >::type > type
The resulting type.
Definition make_signed.hpp:67
add_const_t< add_volatile_t< typename make_signed< remove_cv_t< Type > >::type > > type
The resulting type.
Definition make_signed.hpp:95
Type type
The resulting type.
Definition make_signed.hpp:53
add_volatile_t< typename make_signed< remove_cv_t< Type > >::type > type
The resulting type.
Definition make_signed.hpp:81
typename sized_signed< sizeof(Type)>::type type
The resulting type.
Definition make_signed.hpp:239
typename sized_signed< sizeof(char16_t)>::type type
The resulting type.
Definition make_signed.hpp:221
typename sized_signed< sizeof(char32_t)>::type type
The resulting type.
Definition make_signed.hpp:228
signed char type
The resulting type.
Definition make_signed.hpp:145
signed char type
The resulting type.
Definition make_signed.hpp:103
int type
The resulting type.
Definition make_signed.hpp:119
long type
The resulting type.
Definition make_signed.hpp:128
long long type
The resulting type.
Definition make_signed.hpp:137
short type
The resulting type.
Definition make_signed.hpp:112
typename sized_signed< sizeof(wchar_t)>::type type
The resulting type.
Definition make_signed.hpp:213
Internal class providing std::make_signed.
Definition make_signed.hpp:38
short type
The resulting type.
Definition make_signed.hpp:168
signed char type
The resulting type.
Definition make_signed.hpp:158
long type
The resulting type.
Definition make_signed.hpp:191
int type
The resulting type.
Definition make_signed.hpp:179
long long type
The resulting type.
Definition make_signed.hpp:203
Internal class providing a signed type with a specified size.
Definition make_signed.hpp:151