tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
move_constructible.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2020 Tobias Hienzsch
3
4#ifndef TETL_CONCEPTS_MOVE_CONSTRUCTIBLE_HPP
5#define TETL_CONCEPTS_MOVE_CONSTRUCTIBLE_HPP
6
7#include <etl/_concepts/constructible_from.hpp>
8#include <etl/_concepts/convertible_to.hpp>
9
10namespace etl {
11
12/// \brief The concept move_constructible is satisfied if T is a reference type,
13/// or if it is an object type where an object of that type can be constructed
14/// from an rvalue of that type in both direct- and copy-initialization
15/// contexts, with the usual semantics.
16///
17/// https://en.cppreference.com/w/cpp/concepts/move_constructible
18///
19/// \ingroup concepts
20template <typename T>
21concept move_constructible = constructible_from<T, T> && convertible_to<T, T>;
22
23} // namespace etl
24
25#endif // TETL_CONCEPTS_MOVE_CONSTRUCTIBLE_HPP
Definition adjacent_find.hpp:9