4#ifndef TETL_TYPE_TRAITS_ALIGNED_STORAGE_HPP
5#define TETL_TYPE_TRAITS_ALIGNED_STORAGE_HPP
7#include <etl/_cstddef/max_align_t.hpp>
8#include <etl/_cstddef/size_t.hpp>
9#include <etl/_type_traits/conditional.hpp>
18template <
etl::size_t Cap>
19union aligned_storage_impl {
21 using maybe = conditional_t<(Cap >=
sizeof(T)), T,
char>;
50template <size_t Len, size_t Align =
alignof(detail::aligned_storage_impl<Len>)>
57template <size_t Len, size_t Align =
alignof(detail::aligned_storage_impl<Len>)>
Definition adjacent_find.hpp:9
Definition aligned_storage.hpp:52
unsigned char data[Len]
Definition aligned_storage.hpp:53
Provides the nested type type, which is a trivial standard-layout type suitable for use as uninitiali...
Definition aligned_storage.hpp:51