#include <mc_rtc/DataStore.h>
Public Types | |
using | decay_t = typename std::decay< T >::type |
using | type = typename std::conditional< is_arithmetic, decay_t, T >::type |
Static Public Attributes | |
static constexpr bool | is_arithmetic = std::is_arithmetic<decay_t>::value |
Bend usual C++ rules to deduct the argument types in call
Normally when passing an lvalue to a template function, T && will be T &. In our case, for arithmetic types (typically double) we far more often want T so this traits changes the deduction rule for those types
using mc_rtc::internal::args_t< T >::decay_t = typename std::decay<T>::type |
using mc_rtc::internal::args_t< T >::type = typename std::conditional<is_arithmetic, decay_t, T>::type |
|
staticconstexpr |