distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
estd::internal::TypeFromSize< size > Struct Template Reference

Implementation of TypeFromSize. More...

#include "estd/TypeFromSize.hpp"

Public Types

using Type = typename std::conditional< size<=sizeof(uint8_t), uint8_t, typename std::conditional< size<=sizeof(uint16_t), uint16_t, typename std::conditional< size<=sizeof(uint32_t), uint32_t, uint64_t >::type >::type >::type
 one of fixed width types which is at least size bytes More...

Detailed Description

template<size_t size>
struct estd::internal::TypeFromSize< size >

Implementation of TypeFromSize.

Template Parameters
sizeis the expected size of type, bytes

Member Typedef Documentation

◆ Type

template<size_t size>
using estd::internal::TypeFromSize< size >::Type = typename std::conditional<size <= sizeof(uint8_t), uint8_t, typename std::conditional<size <= sizeof(uint16_t), uint16_t, typename std::conditional<size <= sizeof(uint32_t), uint32_t, uint64_t>::type>::type>::type

one of fixed width types which is at least size bytes

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