ConstIf< T, MAKECONST > Class Template Reference

#include <apibase.h>

Detailed Description

template<typename T, Bool MAKECONST>
class maxon::ConstIf< T, MAKECONST >

This transformation type trait can be used to add a const qualifier to a type T only if a condition is fulfilled. ConstIf<T, C>::type will be T if C is false, const T otherwise.

Template Parameters
TType to which a const qualifier shall be added conditionally.
MAKECONSTBool value to enable the addition of the const qualifier.

Public Types

using type = T
 

Member Typedef Documentation

◆ type

using type = T

The result type, either T or const T.