A backported equivalent of std::integral_constant, making the feature available on platforms that don't implement it.
See http://en.cppreference.com/w/cpp/types/integral_constant for more details.
Note that all members and variable match the STL equivalent names for consistency.
#include <utility/YiTypeTraits.h>
Public Types | |
| typedef Type | value_type |
| typedef YiIntegralConstant< Type, templateValue > | type |
Public Member Functions | |
| operator value_type () const | |
| value_type | operator() () const |
Static Public Attributes | |
| static const Type | value = templateValue |
| typedef YiIntegralConstant<Type, templateValue> YiIntegralConstant< Type, templateValue >::type |
| typedef Type YiIntegralConstant< Type, templateValue >::value_type |
|
inline |
Conversion function which returns the wrapped value.
|
inline |
Returns the wrapped value.
This function enables YiIntegralConstant to serve as a source of compile-time function objects.
|
static |
Static constant of type 'Type' with value 'templateValue'.