std::indirectly_swappable(3cxx)

std::indirectly_swappable3cxx

[alg.req.ind.swap], concept indirectly_swappable

Usage

#include <iterator>

Concept definition

template<typename _I1, typename _I2 _I1>
concept std::indirectly_swappable =  indirectly_readable<_I1> && indirectly_readable<_I2>
      && requires(const _I1 __i1, const _I2 __i2)
      {
        ranges::iter_swap(__i1, __i1);
        ranges::iter_swap(__i2, __i2);
        ranges::iter_swap(__i1, __i2);
        ranges::iter_swap(__i2, __i1);
      }

Detailed Description

[alg.req.ind.swap], concept indirectly_swappable

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Generated automatically by Doxygen for libstdc++ from the source code.

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc. Parsed by carta from the page's man source.