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
14template <typename T>
15struct is_aggregate : bool_constant<__is_aggregate(remove_cv_t<T>)> { };
16
17template <typename T>
18inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<T>);
19
20} // namespace etl
21
22#endif // TETL_TYPE_TRAITS_IS_AGGREGATE_HPP
Definition adjacent_find.hpp:9
constexpr bool is_aggregate_v
Definition is_aggregate.hpp:18
Definition is_aggregate.hpp:15