tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
alignment_of.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_TYPE_TRAITS_ALIGNMENT_OF_HPP
5#define TETL_TYPE_TRAITS_ALIGNMENT_OF_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_type_traits/integral_constant.hpp>
9
10namespace etl {
11
12/// \brief alignment_of
13/// \ingroup type_traits
14template <typename T>
15struct alignment_of : integral_constant<size_t, alignof(T)> { };
16
17/// \ingroup type_traits
18template <typename T>
20
21} // namespace etl
22
23#endif // TETL_TYPE_TRAITS_ALIGNMENT_OF_HPP
constexpr size_t alignment_of_v
Definition alignment_of.hpp:19
Definition adjacent_find.hpp:9
alignment_of
Definition alignment_of.hpp:15
Definition integral_constant.hpp:11