std::indire...t_weak_order(3)
π std::indirect_strict_weak_order β¨
okay bestie, so this page is literally about std::indirect_strict_weak_order β that's the NAME, that's the whole vibe, we're doing this π«Ά (manual fam: C++ Standard Library, if you were wondering π).
Defined in header <iterator> β don't forget to #include it, no cap π
πΈ Synopsis πΈ
template< class F, class I1, class I2 = I1 >
concept indirect_strict_weak_order =
std::indirectly_readable<I1> &&
std::indirectly_readable<I2> &&
std::copy_constructible<F> &&
std::strict_weak_order<F&, std::iter_value_t<I1>&,
std::iter_value_t<I2>&> &&
std::strict_weak_order<F&, std::iter_value_t<I1>&,
std::iter_reference_t<I2>> &&
std::strict_weak_order<F&, std::iter_reference_t<I1>,
std::iter_value_t<I2>&> &&
std::strict_weak_order<F&, std::iter_reference_t<I1>,
std::iter_reference_t<I2>> &&
std::strict_weak_order<F&, std::iter_common_reference_t<I1>,
std::iter_common_reference_t<I2>>;
β¨ since C++20 β¨ β she's a modern queen, we stan π
π¦ Description π¦
So likeβ¦ the concept std::indirect_strict_weak_order specifies the requirements for algorithms that call strict weak orders as their arguments. That's it, that's the job π
The key difference between this concept and std::strict_weak_order is that it's applied to the types that I1 and I2 reference, rather than to I1 and I2 themselves. it's giving "look past the iterator, see the soul" π§ lowkey iconic honestly β¨
π Semantic requirements π
F, I1, and I2 model indirect_strict_weak_order only if all concepts it subsumes are modeled. that's the whole rule, bestie β no extra credit, no shortcuts, fr fr π₯
okay that's the page!! sourced from cppreference.com, dated 2024.06.10, and yes the manpage title/footer said std::indire...t_weak_order(3) because even the filename got truncated mid-sl*y β relatable ππ go forth and order things indirectly, 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