TSDuck v3.46-4965
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::smaller_unsigned< BITS > Struct Template Reference

#include <tsIntegerUtils.h>

Public Types

using type

Detailed Description

template<const size_t BITS>
struct ts::smaller_unsigned< BITS >

Define the smaller unsigned integer type with at least a given number of bits.

Template Parameters
BITSMinimum number of bits. Must be in the range 0 to 64.

Member Typedef Documentation

◆ type

template<const size_t BITS>
using ts::smaller_unsigned< BITS >::type
Initial value:
typename std::conditional<
BITS <= 8,
uint8_t,
typename std::conditional<
BITS <= 16,
uint16_t,
typename std::conditional<
BITS <= 32,
uint32_t,
typename std::conditional<
BITS <= 64,
uint64_t,
void
typename std::conditional< match_ieee_float< float, storage_bits, exponent_bits, mantissa_bits >(), float, typename std::conditional< match_ieee_float< double, storage_bits, exponent_bits, mantissa_bits >(), double, typename std::conditional< match_ieee_float< long double, storage_bits, exponent_bits, mantissa_bits >(), long double, void >::type >::type >::type type
Definition tsFloatUtils.h:78

The smaller unsigned integer type with at list BITS bits.


The documentation for this struct was generated from the following file: