iter_swap(ranges::zip_view::iterator)
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++26)(C++26)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
std::ranges::zip_view
iter_swap(zip_view::iterator)
Member functions
Non-member functions
friend constexpr void iter_swap( const /*iterator*/& x, const /*iterator*/& y )
(since C++23)
noexcept(/* see below */)
requires (std::indirectly_swappable <ranges::iterator_t <
Performs ranges::iter_swap (std::get<i>(x.current_), std::get<i>(y.current_)) for every integer i
in [
0,
sizeof...(Views))
, where current_
denotes the underlying tuple-like object that holds iterators to elements of adapted views.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when zip_view::iterator<Const>
is an associated class of the arguments.
[edit] Parameters
x, y
-
iterators to the elements to swap
[edit] Return value
(none)
[edit] Exceptions
noexcept specification:
noexcept(
(noexcept(ranges::iter_swap (
declval<const ranges::iterator_t </*maybe-const*/<Const, Views>>&>(),