std::experi...lySwappable(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ¦‹ 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