tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
movable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2023 Tobias Hienzsch
3
4#ifndef TETL_CONCEPTS_MOVABLE_HPP
5#define TETL_CONCEPTS_MOVABLE_HPP
6
7#include <etl/_concepts/assignable_from.hpp>
8#include <etl/_concepts/move_constructible.hpp>
9#include <etl/_concepts/swappable.hpp>
10#include <etl/_type_traits/is_object.hpp>
11
12namespace etl {
13
14/// \ingroup concepts
15template <typename T>
16concept movable = is_object_v<T> and move_constructible<T> and assignable_from<T&, T> and swappable<T>;
17
18} // namespace etl
19
20#endif // TETL_CONCEPTS_MOVABLE_HPP
Definition adjacent_find.hpp:9