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
3#ifndef TETL_TYPE_TRAITS_ALIGNMENT_OF_HPP
4#define TETL_TYPE_TRAITS_ALIGNMENT_OF_HPP
5
8
9namespace etl {
10
12template <typename T>
13struct alignment_of : integral_constant<size_t, alignof(T)> { };
14
15template <typename T>
16inline constexpr size_t alignment_of_v = alignment_of<T>::value;
17
18} // namespace etl
19
20#endif // TETL_TYPE_TRAITS_ALIGNMENT_OF_HPP
Definition adjacent_find.hpp:8
constexpr size_t alignment_of_v
Definition alignment_of.hpp:16
alignment_of
Definition alignment_of.hpp:13
Definition integral_constant.hpp:9
static constexpr size_t value
Definition integral_constant.hpp:10