std::experi...es::Sortable(3)
β¨ NAME β¨
okay bestie, welcome to the std::experimental::ranges::Sortable page from the C++ Standard Libary β and yes, the manual name is literally std::experimental::ranges::Sortable again, because the original NAME block said it twice and we're not erasing that iconique repetition. π
This whole page is about the concept called std::experimental::ranges::Sortable. Periodt.
π SYNOPSIS π
Here's the signature, copied exactly so nobody comes for us:
template< class I, class R = ranges::less<>, class P =
ranges::identity
>
concept bool Sortable =
(ranges TS)
Permutable<I> &&
IndirectStrictWeakOrder<R, ranges::projected<I, P>>;
Lowkey the important bits: it's a concept bool named Sortable, it's marked (ranges TS), and it requires both Permutable<I> and IndirectStrictWeakOrder<R, ranges::projected<I, P>>. The template parameters are class I, class R = ranges::less<>, and class P = ranges::identity β defaults included, no cap. π«Ά
So what is Sortable for? It spells out the common requirements of algorithms that permute sequences into ordered sequences β the original gives ranges::sort as the example. That's the whole vibe check: ordered sequences, permuted, sort-coded. β¨
Sign-off time, bestie: this was served fresh from cppreference.com, version/date 2024.06.10, and that's the whole page β mwah. ππ
π¦ 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