ezEngine Release 26.3
Loading...
Searching...
No Matches
ezTypeTraits< T > Struct Template Reference

Utility template for extracting clean types from decorated types. More...

#include <TypeTraits.h>

Public Types

using NonConstType = typename std::remove_const< T >::type
 Removes const qualifier: const int -> int.
 
using NonReferenceType = typename std::remove_reference< T >::type
 Removes reference qualifier: int& -> int, int&& -> int.
 
using NonPointerType = typename std::remove_pointer< T >::type
 Removes pointer qualifier: int* -> int.
 
using NonConstReferenceType = typename std::remove_const< typename std::remove_reference< T >::type >::type
 Removes both reference and const qualifiers: const int& -> int.
 
using NonReferencePointerType = typename std::remove_pointer< typename std::remove_reference< T >::type >::type
 Removes both reference and pointer qualifiers: int*& -> int.
 
using NonConstReferencePointerType = typename std::remove_const< typename std::remove_reference< typename std::remove_pointer< T >::type >::type >::type
 Removes reference, const, and pointer qualifiers from the pointed-to type.
 

Detailed Description

template<typename T>
struct ezTypeTraits< T >

Utility template for extracting clean types from decorated types.

Member Typedef Documentation

◆ NonConstReferencePointerType

template<typename T >
using ezTypeTraits< T >::NonConstReferencePointerType = typename std::remove_const<typename std::remove_reference<typename std::remove_pointer<T>::type>::type>::type

Removes reference, const, and pointer qualifiers from the pointed-to type.

Note: This operates on the pointed-to type, not the pointer itself. Example: const int*& -> int (not int*)


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