FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
types_traits::SmallestInt< VAL > Struct Template Reference

Find the smallest integral types, signed and unsigned, tha can hold a given value. More...

#include <fastarduino/types_traits.h>

Public Types

using UNSIGNED_TYPE = typename UnsignedInt< uint_size_in_val(VAL)>::UTYPE
 The smallest unsigned integral type that can hold VAL. More...
 
using SIGNED_TYPE = typename UnsignedInt< uint_size_in_val(VAL)>::STYPE
 The smallest signed integral type that can hold VAL. More...
 

Detailed Description

template<uint64_t VAL>
struct types_traits::SmallestInt< VAL >

Find the smallest integral types, signed and unsigned, tha can hold a given value.

Template Parameters
VALthe integral value for which to find the smallest size integral types

Definition at line 167 of file types_traits.h.

Member Typedef Documentation

◆ UNSIGNED_TYPE

template<uint64_t VAL>
using types_traits::SmallestInt< VAL >::UNSIGNED_TYPE = typename UnsignedInt<uint_size_in_val(VAL)>::UTYPE

The smallest unsigned integral type that can hold VAL.

Definition at line 170 of file types_traits.h.

◆ SIGNED_TYPE

template<uint64_t VAL>
using types_traits::SmallestInt< VAL >::SIGNED_TYPE = typename UnsignedInt<uint_size_in_val(VAL)>::STYPE

The smallest signed integral type that can hold VAL.

Definition at line 172 of file types_traits.h.


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