5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MAKE_UNSIGNED_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MAKE_UNSIGNED_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>>>> {
137 using type =
unsigned long long;
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)>>> {
203 using type =
unsigned 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_unsigned.hpp:33
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_unsigned_detail::make_unsigned< Type > make_unsigned
A type trait to provide the equivalent unsigned type for integral and enumeration types other than bo...
Definition make_unsigned.hpp:247
typename conditional< Condition, TrueType, FalseType >::type conditional_t
Helper template alias for selecting types based on a condition. If the supplied Condition is true the...
Definition conditional.hpp:57
typename make_unsigned< Type >::type make_unsigned_t
A type alias for the equivalent unsigned type for integral and enumeration types other than bool.
Definition make_unsigned.hpp:252
add_const_t< add_volatile_t< typename make_unsigned< remove_cv_t< Type > >::type > > type
The resulting type.
Definition make_unsigned.hpp:95
add_volatile_t< typename make_unsigned< remove_cv_t< Type > >::type > type
The resulting type.
Definition make_unsigned.hpp:81
Type type
The resulting type.
Definition make_unsigned.hpp:53
typename sized_unsigned< sizeof(Type)>::type type
The resulting type.
Definition make_unsigned.hpp:239
add_const_t< typename make_unsigned< remove_cv_t< Type > >::type > type
The resulting type.
Definition make_unsigned.hpp:67
typename sized_unsigned< sizeof(char16_t)>::type type
The resulting type.
Definition make_unsigned.hpp:221
typename sized_unsigned< sizeof(char32_t)>::type type
The resulting type.
Definition make_unsigned.hpp:228
conditional_t< is_signed_v< char >, unsigned char, char > type
The resulting type.
Definition make_unsigned.hpp:145
unsigned type
The resulting type.
Definition make_unsigned.hpp:119
unsigned long type
The resulting type.
Definition make_unsigned.hpp:128
unsigned long long type
The resulting type.
Definition make_unsigned.hpp:137
unsigned short type
The resulting type.
Definition make_unsigned.hpp:112
unsigned char type
The resulting type.
Definition make_unsigned.hpp:103
typename sized_unsigned< sizeof(wchar_t)>::type type
The resulting type.
Definition make_unsigned.hpp:213
Internal class providing std::make_unsigned.
Definition make_unsigned.hpp:38
unsigned char type
The resulting type.
Definition make_unsigned.hpp:158
unsigned type
The resulting type.
Definition make_unsigned.hpp:179
unsigned short type
The resulting type.
Definition make_unsigned.hpp:168
unsigned long long type
The resulting type.
Definition make_unsigned.hpp:203
unsigned long type
The resulting type.
Definition make_unsigned.hpp:191
Internal class providing an unsigned type with a specified size.
Definition make_unsigned.hpp:151