tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_unbounded_array.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_UNBOUNDED_ARRAY_HPP
5#define TETL_TYPE_TRAITS_IS_UNBOUNDED_ARRAY_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8
9namespace etl {
10
11/// \brief Checks whether T is an array type of unknown bound. Provides the
12/// member constant value which is equal to true, if T is an array type of
13/// unknown bound. Otherwise, value is equal to false.
14template <typename T>
15struct is_unbounded_array : false_type { };
16
17template <typename T>
18struct is_unbounded_array<T[]> : true_type { };
19
20template <typename T>
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_IS_UNBOUNDED_ARRAY_HPP
Definition adjacent_find.hpp:9
constexpr bool is_unbounded_array_v
Definition is_unbounded_array.hpp:21
Checks whether T is an array type of unknown bound. Provides the member constant value which is equal...
Definition is_unbounded_array.hpp:15