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
13template <typename T>
14struct alignment_of : integral_constant<size_t, alignof(T)> { };
15
16template <typename T>
18
19} // namespace etl
20
21#endif // TETL_TYPE_TRAITS_ALIGNMENT_OF_HPP
Definition adjacent_find.hpp:9
constexpr size_t alignment_of_v
Definition alignment_of.hpp:17
alignment_of
Definition alignment_of.hpp:14
Definition integral_constant.hpp:10