tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
copyable.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_COPYABLE_HPP
5#define TETL_CONCEPTS_COPYABLE_HPP
6
7#include <etl/_concepts/assignable_from.hpp>
8#include <etl/_concepts/copy_constructible.hpp>
9#include <etl/_concepts/movable.hpp>
10
11namespace etl {
12
13/// \ingroup concepts
14template <typename T>
15concept copyable = //
16 copy_constructible<T>
17 and //
18 movable<T>
19 and //
20 assignable_from<T&, T&>
21 and //
22 assignable_from<T&, T const&>
23 and //
24 assignable_from<T&, T const>; //
25
26} // namespace etl
27
28#endif // TETL_CONCEPTS_COPYABLE_HPP
Definition adjacent_find.hpp:9