|
|
|
@ -308,9 +308,9 @@ namespace Implementation { |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@brief Traits class for builtin arithmetic types |
|
|
|
@brief Traits class for builtin arithmetic types |
|
|
|
|
|
|
|
|
|
|
|
Traits classes are usable for detecting type features at compile time without |
|
|
|
Useful for detecting type features at compile time without the need for |
|
|
|
the need for repeated code such as method overloading or template |
|
|
|
repeated code such as method overloading, cascaded ifs or template |
|
|
|
specialization for given types. All builtin arithmetic types have this class |
|
|
|
specializations for given types. All builtin arithmetic types have this class |
|
|
|
implemented. |
|
|
|
implemented. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
template<class T> struct TypeTraits: Implementation::TypeTraitsDefault<T> { |
|
|
|
template<class T> struct TypeTraits: Implementation::TypeTraitsDefault<T> { |
|
|
|
@ -333,8 +333,8 @@ template<class T> struct TypeTraits: Implementation::TypeTraitsDefault<T> { |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Type name |
|
|
|
* @brief Type name |
|
|
|
* |
|
|
|
* |
|
|
|
* Returns a string representation of type name, such as `"UnsignedInt"` |
|
|
|
* Returns a string representation of type name, such as |
|
|
|
* for @ref Magnum::UnsignedInt "UnsignedInt". |
|
|
|
* @cpp "UnsignedInt" @ce for @relativeref{Magnum,UnsignedInt}. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
constexpr static const char* name(); |
|
|
|
constexpr static const char* name(); |
|
|
|
|
|
|
|
|
|
|
|
|