Embedded Template Library 1.0
Loading...
Searching...
No Matches
alignment

Classes

class  etl::type_with_alignment< Alignment >
 
struct  etl::aligned_storage< Length, Alignment >
 
struct  etl::aligned_storage_as< Length, T >
 

Detailed Description

Creates a variable of the specified type at the specified alignment.


Class Documentation

◆ etl::type_with_alignment

class etl::type_with_alignment
template<size_t Alignment>
class etl::type_with_alignment< Alignment >

Gets a type that has the same as the specified alignment.

Public Types

typedef private_alignment::type_with_alignment_helper< Alignment, int_least8_t, int_least16_t, int32_t, int64_t, float, double, void * >::type type
 

Public Member Functions

 ETL_STATIC_ASSERT (etl::alignment_of< type >::value==Alignment, "Unable to create the type with the specified alignment")
 

◆ etl::aligned_storage

struct etl::aligned_storage
template<size_t Length, const size_t Alignment>
struct etl::aligned_storage< Length, Alignment >

Aligned storage Length should be determined in terms of sizeof()

◆ etl::aligned_storage_as

struct etl::aligned_storage_as
template<size_t Length, typename T>
struct etl::aligned_storage_as< Length, T >

Aligned storage as