std::relation(3)
π NAME π
Hiii bestie! This is std::relation(3), straight from the C++ Standard Libary manual β yes, that's the manual name, typo and all, we are not fixing it π
β¨.
The NAME line is literally std::relation - std::relation. Twin energy, no notes ππ«Ά.
β¨ Synopsis β¨
Defined in header <concepts> π¦
template< class R, class T, class U >
concept relation = (1) (since
C++20)
std::predicate<R, T, T> && std::predicate<R, U, U> &&
std::predicate<R, T, U> && std::predicate<R, U, T>;
Okay so here's the vibe: the concept relation<R, T, U> specifies that R defines a binary relation over the set of expressions whose type and value category are those encoded by either T or U. That's the whole flex β R is out here being a binary relation across that expression set, and the code above lays out the std::predicate checks it's serving π₯π.
That's the tea π: this page came from http://cppreference.com, dated 2024.06.10, and it's std::relation(3) β periodt. πβ¨π
π¦ 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