distortos
v0.7.0
objectoriented C++ RTOS for microcontrollers

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...  
Implementation of TypeFromSize.
size  is the expected size of type, bytes 
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