Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 885 Bytes

make-unsigned-class.md

File metadata and controls

40 lines (27 loc) · 885 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: make_unsigned Class
make_unsigned Class
11/04/2016
type_traits/std::make_unsigned
make_unsigned class
make_unsigned
7a6a3c4f-1a4c-47e8-9ee2-ac1f7b669353

make_unsigned Class

Makes type or the smallest unsigned type greater than or equal in size to type.

Syntax

template <class T>
struct make_unsigned;

template <class T>
using make_unsigned_t = typename make_unsigned<T>::type;

Parameters

T
The type to modify.

Remarks

An instance of the type modifier holds a modified-type that is T if is_unsigned<T> holds true. Otherwise it is the smallest signed type ST for which sizeof (T) <= sizeof (ST).

Requirements

Header: <type_traits>

Namespace: std

See also

<type_traits>