Skip to content

iox::cxx::BestFittingType🔗

get the best fitting unsigned integer type for a given value at compile time More...

#include <iceoryx_hoofs/cxx/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 18 December 2023 at 13:11:42 CET