std::experi...lySwappable(3)
π¦ std::experimental::ranges::IndirectlySwappable(3) π¦
okay so bestie, this is the std::experimental::ranges::IndirectlySwappable(3) page from the C++ Standard Libary β yes, the header spells it that way, and we're not fixing it π. The manual name is the whole concept name, and the original NAME section says it twice, so we're keeping both because details are sacred. Periodt. π
π NAME π
std::experimental::ranges::IndirectlySwappableβstd::experimental::ranges::IndirectlySwappable(yes, literally the same name twice, the manpage said it like that and I respect it π«Ά)
β¨ Synopsis β¨
Defined in header <experimental/ranges/iterator>
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 TS)
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));
};
This section is incomplete Reason: add description and extra caveats
ngl that's the whole synopsis vibe: template< class I1, class I2 = I1 >, then a concept bool IndirectlySwappable that needs Readable<I1> && Readable<I2> && a requires block with those four ranges::iter_swap calls, and one of them is marked (ranges TS) because this is ranges TS energy β¨.
π Category π
- Todo with reason
That's the list. It's giving "work in progress but make it iconic" π.
okay bestie, that's the page! source is http://cppreference.com, version/date is 2024.06.10, and the footer is out here repeating that truncated std::experi...lySwappable(3) name β cute, but we already covered it π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms