4#ifndef TETL_TYPE_TRAITS_ALIGNED_UNION_HPP
5#define TETL_TYPE_TRAITS_ALIGNED_UNION_HPP
7#include <etl/_cstddef/size_t.hpp>
13[[nodiscard]]
constexpr auto vmax(T val) -> T
18template <
typename T0,
typename T1,
typename... Ts>
19[[nodiscard]]
constexpr auto vmax(T0 val1, T1 val2, Ts... vs) -> T0
21 return (val1 > val2) ? vmax(val1, vs...) : vmax(val2, vs...);
35template <size_t Len,
typename... Types>
44template <size_t Len,
typename... Types>
Definition adjacent_find.hpp:9
Definition aligned_union.hpp:39
char storage[detail::vmax(Len, sizeof(Types)...)]
Definition aligned_union.hpp:40
Provides the nested type type, which is a trivial standard-layout type of a size and alignment suitab...
Definition aligned_union.hpp:36
static constexpr size_t alignment_value
Definition aligned_union.hpp:37