Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::ranges::IndirectlySwappable

NotebookLM
template< class I1, class I2 = I1 >
concept bool IndirectlySwappable =
    Readable<I1> && Readable<I2> &&
    requires(I1&& i1, I2&& i2) {
        ranges::iter_swap(std::forward<I1>(i1), std::forward<I2>(i2));
        ranges::iter_swap(std::forward<I2>(i2), std::forward<I1>(i1));
        ranges::iter_swap(std::forward<I1>(i1), std::forward<I1>(i1));
        ranges::iter_swap(std::forward<I2>(i2), std::forward<I2>(i2));
    };
(ranges TS)
This section is incomplete
Reason: add description and extra caveats

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.