tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_aggregate.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_IS_AGGREGATE_HPP
5#define TETL_TYPE_TRAITS_IS_AGGREGATE_HPP
6
7#include <etl/_config/all.hpp>
8
9#include <etl/_type_traits/bool_constant.hpp>
10#include <etl/_type_traits/remove_cv.hpp>
11
12namespace etl {
13
14/// \ingroup type_traits
15template <typename T>
16struct is_aggregate : bool_constant<__is_aggregate(remove_cv_t<T>)> { };
17
18/// \ingroup type_traits
19template <typename T>
20inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<T>);
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_IS_AGGREGATE_HPP
constexpr bool is_aggregate_v
Definition is_aggregate.hpp:20
Definition adjacent_find.hpp:9
Definition is_aggregate.hpp:16