iter_swap(std::common_iterator)
From cppreference.com
< cpp | iterator | common iterator
template< std::indirectly_swappable<I> I2, class S2 > friend constexpr void |
(since C++20) | |
Swaps the objects pointed to by two underlying iterators. The behavior is undefined if x does not hold an I
object or y does not hold an I2
object (i.e. at least one of x and y does not hold an iterator).
The function body is equivalent to ranges::iter_swap(std::get<I>(x.var), std::get<I2>(y.var)).
This function template is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::common_iterator<I,S> is an associated class of the arguments.
Contents |