tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_trivially_copyable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_TRIVIALLY_COPYABLE_HPP
4#define TETL_TYPE_TRAITS_IS_TRIVIALLY_COPYABLE_HPP
5
6#include <etl/_config/all.hpp>
7
9
10namespace etl {
11
17template <typename T>
18struct is_trivially_copyable : etl::bool_constant<__is_trivially_copyable(T)> { };
19
20template <typename T>
21inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(T);
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_IS_TRIVIALLY_COPYABLE_HPP
Definition adjacent_find.hpp:8
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
constexpr bool is_trivially_copyable_v
Definition is_trivially_copyable.hpp:21
If T is a TriviallyCopyable type, provides the member constant value equal to true....
Definition is_trivially_copyable.hpp:18