libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
SmallestInteger< N >
template<size_t N>
struct libsemigroups::SmallestInteger< N >

Provides a type giving the smallest unsigned integer type capable of representing the template N.

The member type contains the smallest (in terms of memory required) unsigned integer type which can represent the non-negative integer N.

Public Types

using type
 

Member Typedef Documentation

◆ type

template<size_t N>
using type
Initial value:
std::conditional_t<
N >= 0x100000000,
uint64_t,
std::conditional_t<N >= 0x10000,
uint32_t,
std::conditional_t<N >= 0x100, uint16_t, uint8_t>>>

The smallest (in terms of memory required) unsigned integer type which can represent N.


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