TSDuck v3.39-3843
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::int_max< INT, type > Struct Template Reference

The meta-type ts::int_max selects the integer type with largest width and same signedness as another integer type. More...

#include <tsIntegerUtils.h>

Public Types

using type = typename int_max_impl< std::is_signed< INT >::value >::type
 The integer type with the same signedness and largest width.
 

Detailed Description

template<typename INT, typename std::enable_if< std::is_integral< INT >::value, int >::type = 0>
struct ts::int_max< INT, type >

The meta-type ts::int_max selects the integer type with largest width and same signedness as another integer type.

Template Parameters
INTAn integer type, any size, signed or unsigned.

Member Typedef Documentation

◆ type

template<typename INT , typename std::enable_if< std::is_integral< INT >::value, int >::type = 0>
using ts::int_max< INT, type >::type = typename int_max_impl<std::is_signed<INT>::value>::type

The integer type with the same signedness and largest width.

In practice, it is either std::uintmax_t or std::intmax_t.


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