tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_default_constructible.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_DEFAULT_CONSTRUCTIBLE_HPP
5#define TETL_TYPE_TRAITS_IS_DEFAULT_CONSTRUCTIBLE_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8#include <etl/_type_traits/is_constructible.hpp>
9
10namespace etl {
11
12/// \brief If etl::is_constructible<T>::value is true, provides the member
13/// constant value equal to true, otherwise value is false.
14///
15/// \details T shall be a complete type, (possibly cv-qualified) void, or an
16/// array of unknown bound. Otherwise, the behavior is undefined. If an
17/// instantiation of a template above depends, directly or indirectly, on an
18/// incomplete type, and that instantiation could yield a different result if
19/// that type were hypothetically completed, the behavior is undefined.
20///
21/// The behavior of a program that adds specializations for any of the templates
22/// described on this page is undefined.
23template <typename T>
24struct is_default_constructible : is_constructible<T> { };
25
26template <typename T>
28
29} // namespace etl
30
31#endif // TETL_TYPE_TRAITS_IS_DEFAULT_CONSTRUCTIBLE_HPP
Definition adjacent_find.hpp:9
constexpr bool is_default_constructible_v
Definition is_default_constructible.hpp:27
If etl::is_constructible<T>::value is true, provides the member constant value equal to true,...
Definition is_default_constructible.hpp:24