tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
swappable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CONCEPTS_SWAPPABLE_HPP
4#define TETL_CONCEPTS_SWAPPABLE_HPP
5
7
8namespace etl {
9
12template <typename T>
13concept swappable = requires(T& a, T& b) {
14 swap(a, b);
15 // ranges::swap(a, b);
16};
17
18} // namespace etl
19
20#endif // TETL_CONCEPTS_SWAPPABLE_HPP
Definition swappable.hpp:13
Definition adjacent_find.hpp:8
auto swap(inplace_function< R(Args...), Capacity, Alignment > &lhs, inplace_function< R(Args...), Capacity, Alignment > &rhs) noexcept -> void
Overloads the etl::swap algorithm for etl::inplace_function. Exchanges the state of lhs with that of ...
Definition inplace_function.hpp:249