walberla::math::leastUnsignedInteger< minSize > Struct Template Reference

Detailed Description

template<uint_t minSize>
struct walberla::math::leastUnsignedInteger< minSize >

Provides the smallest unsigned integer type that has at least minSize bits.

Example:

leastUnsignedInteger< 5 >::type a; // a is an 8-bit unsigned integer leastUnsignedInteger< 9 >::type b; // b is a 16-bit unsigned integer

#include <Uint.h>

Public Types

using type = typename uintFromBitWidth< leastUnsignedIntegerBitWidth(minSize)>::type
 

Member Typedef Documentation

◆ type

template<uint_t minSize>
using walberla::math::leastUnsignedInteger< minSize >::type = typename uintFromBitWidth<leastUnsignedIntegerBitWidth(minSize)>::type

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