tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
constructible_from.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_CONCEPTS_CONSTRUCTIBLE_FROM_HPP
5#define TETL_CONCEPTS_CONSTRUCTIBLE_FROM_HPP
6
7#include <etl/_concepts/destructible.hpp>
8#include <etl/_type_traits/is_constructible.hpp>
9
10namespace etl {
11
12/// \brief The constructible_from concept specifies that a variable of type T
13/// can be initialized with the given set of argument types Args....
14/// \ingroup concepts
15template <typename T, typename... Args>
16concept constructible_from = destructible<T> and is_constructible_v<T, Args...>;
17
18} // namespace etl
19
20#endif // TETL_CONCEPTS_CONSTRUCTIBLE_FROM_HPP
Definition adjacent_find.hpp:9