tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
max_align_t.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CSTDDEF_MAX_ALIGN_T_HPP
4#define TETL_CSTDDEF_MAX_ALIGN_T_HPP
5
6#include <etl/_config/all.hpp>
7
8namespace etl {
9
10#if defined(TETL_COMPILER_MSVC)
11 #pragma warning(disable: 4324) // Padding was added at the end of a structure
12#endif
13
18struct alignas(long double) max_align_t { };
19
20#if defined(TETL_COMPILER_MSVC)
21 #pragma warning(default: 4324) // Padding was added at the end of a structure
22#endif
23
24} // namespace etl
25
26#endif // TETL_CSTDDEF_MAX_ALIGN_T_HPP
Definition adjacent_find.hpp:8
etl::max_align_t is a trivial standard-layout type whose alignment requirement is at least as strict ...
Definition max_align_t.hpp:18