You.i Engine
YI_REMOVE_REFERENCE< YI_TYPE > Struct Template Reference

Detailed Description

template<class YI_TYPE>
struct YI_REMOVE_REFERENCE< YI_TYPE >

Template/Macro helper utility that generates a value type by removing the reference syntax from a provided type. It has no effect if the provided type does not have a reference syntax.

Example:

YI_REMOVE_REFERENCE<int>::type value1 = otherValue;
YI_REMOVE_REFERENCE<int&>::type value2 = otherValue;

Will instruct the compiler to generate:

int value1 = otherValue;
int value2 = otherValue;

#include <utility/YiTypeTraits.h>

Public Types

typedef YI_TYPE type
 

Member Typedef Documentation

◆ type

template<class YI_TYPE>
typedef YI_TYPE YI_REMOVE_REFERENCE< YI_TYPE >::type

The type with the reference removed.


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