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 = copy_constructible<T>
16 and movable<T>
17 and assignable_from<T&, T&>
18 and assignable_from<T&, T const&>
19 and assignable_from<T&, T const>;
20
21} // namespace etl
22
23#endif // TETL_CONCEPTS_COPYABLE_HPP
Definition adjacent_find.hpp:9