iox::cxx::BestFittingType🔗
get the best fitting unsigned integer type for a given value at compile time More...
#include <helplets.hpp>
Public Types🔗
Name | |
---|---|
using typename internal::BestFittingTypeImpl<(Value > std::numeric_limits< uint8_t >::max()),(Value > std::numeric_limits< uint16_t >::max()),(Value > std::numeric_limits< uint32_t >::max())>::Type_t | Type_t ignore the warnings because we need the comparisons to find the best fitting type |
Detailed Description🔗
template <uint64_t Value>
struct iox::cxx::BestFittingType;
get the best fitting unsigned integer type for a given value at compile time
Public Types Documentation🔗
using Type_t🔗
using iox::cxx::BestFittingType< Value >::Type_t = typename internal::BestFittingTypeImpl<(Value > std::numeric_limits<uint8_t>::max()), (Value > std::numeric_limits<uint16_t>::max()), (Value > std::numeric_limits<uint32_t>::max())>::Type_t;
ignore the warnings because we need the comparisons to find the best fitting type
Updated on 26 April 2021 at 15:31:01 CEST