tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iter_swap.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_ALGORITHM_ITER_SWAP_HPP
4#define TETL_ALGORITHM_ITER_SWAP_HPP
5
7
8namespace etl {
9
18template <typename ForwardIt1, typename ForwardIt2>
19constexpr auto iter_swap(ForwardIt1 a, ForwardIt2 b) -> void
20{
21 using etl::swap;
22 swap(*a, *b);
23}
24
25} // namespace etl
26
27#endif // TETL_ALGORITHM_ITER_SWAP_HPP
constexpr auto iter_swap(ForwardIt1 a, ForwardIt2 b) -> void
Swaps the values of the elements the given iterators are pointing to.
Definition iter_swap.hpp:19
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