3#ifndef TETL_TYPE_TRAITS_ALIGNED_UNION_HPP
4#define TETL_TYPE_TRAITS_ALIGNED_UNION_HPP
12[[nodiscard]]
constexpr auto vmax(T val) -> T
17template <
typename T0,
typename T1,
typename... Ts>
18[[nodiscard]]
constexpr auto vmax(T0 val1, T1 val2, Ts... vs) -> T0
20 return (val1 > val2) ? vmax(val1, vs...) : vmax(val2, vs...);
34template <
size_t Len,
typename... Types>
43template <
size_t Len,
typename... Types>
auto val(pin_number pin) -> etl::uint16_t
Definition gpio.hpp:37
Definition adjacent_find.hpp:8
typename aligned_union< Len, Types... >::type aligned_union_t
Definition aligned_union.hpp:44
Definition aligned_union.hpp:38
char storage[detail::vmax(Len, sizeof(Types)...)]
Definition aligned_union.hpp:39
Provides the nested type type, which is a trivial standard-layout type of a size and alignment suitab...
Definition aligned_union.hpp:35
static constexpr size_t alignment_value
Definition aligned_union.hpp:36