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// SPDX-FileCopyrightText: Copyright (C) 2020 Tobias Hienzsch
3
4#ifndef TETL_CSTDDEF_MAX_ALIGN_T_HPP
5#define TETL_CSTDDEF_MAX_ALIGN_T_HPP
6
7#include <etl/_config/all.hpp>
8
9namespace etl {
10
11#if defined(TETL_COMPILER_MSVC)
12 #pragma warning(disable: 4324) // Padding was added at the end of a structure
13#endif
14
15/// \brief etl::max_align_t is a trivial standard-layout type whose alignment
16/// requirement is at least as strict (as large) as that of every scalar type.
17///
18/// https://en.cppreference.com/w/cpp/types/max_align_t
19struct alignas(long double) max_align_t { };
20
21#if defined(TETL_COMPILER_MSVC)
22 #pragma warning(default: 4324) // Padding was added at the end of a structure
23#endif
24
25} // namespace etl
26
27#endif // TETL_CSTDDEF_MAX_ALIGN_T_HPP
Definition adjacent_find.hpp:9
etl::max_align_t is a trivial standard-layout type whose alignment requirement is at least as strict ...
Definition max_align_t.hpp:19