All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
blaze::MakeUnsigned< T > Struct Template Reference

Compile time type conversion into an unsigned integral type.This type trait provides the feature to convert the given integral or enumeration type T to the corresponding unsigned integral data type with the same size and with the same cv-qualifiers. Note that in case T is bool or a non-integral data type, a compilation error is created. More...

#include <MakeUnsigned.h>

Detailed Description

template<typename T>
struct blaze::MakeUnsigned< T >

Compile time type conversion into an unsigned integral type.

This type trait provides the feature to convert the given integral or enumeration type T to the corresponding unsigned integral data type with the same size and with the same cv-qualifiers. Note that in case T is bool or a non-integral data type, a compilation error is created.

enum MyEnum { ... };
blaze::MakeUnsigned<int>::Type // Results in 'unsigned int'
blaze::MakeUnsigned<const unsigned int>::Type // Results in 'const unsigned int'
blaze::MakeUnsigned<const unsigned long>::Type // Results in 'const unsigned long'
blaze::MakeUnsigned<MyEnum>::Type // Unsigned integer type with the same width as the enum
blaze::MakeUnsigned<wchar_t>::Type // Unsigned integer type with the same width as wchar_t

The documentation for this struct was generated from the following file: