tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_compound.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_COMPOUND_HPP
4#define TETL_TYPE_TRAITS_IS_COMPOUND_HPP
5
8
9namespace etl {
10
15template <typename T>
16struct is_compound : bool_constant<not is_fundamental_v<T>> { };
17
18template <typename T>
19inline constexpr bool is_compound_v = not is_fundamental_v<T>;
20
21} // namespace etl
22
23#endif // TETL_TYPE_TRAITS_IS_COMPOUND_HPP
Definition adjacent_find.hpp:8
constexpr bool is_compound_v
Definition is_compound.hpp:19
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
constexpr bool is_fundamental_v
Definition is_fundamental.hpp:20
If T is a compound type (that is, array, function, object pointer, function pointer,...
Definition is_compound.hpp:16