std::experi...::Predicate(3)
π NAME π
std::experi...::Predicate - std::experimental::ranges::Predicate β bestie, itβs giving βname so nice they ran it twiceβ β¨ This page is std::experi...::Predicate(3), straight from the C++ Standard Libary manual. No cap.
β¨ Synopsis β¨
Okay so hereβs the synopsis, copied with love and exactness:
Defined in header <experimental/ranges/concepts>
template< class F, class... Args >
concept bool Predicate = (ranges TS)
RegularInvocable<F, Args...> &&
Boolean<std::result_of_t<F&&(Args&&...)>>;
The concept Predicate<F, Args...> is the vibe check that says: F is a predicate that accepts arguments whose types and value categories are encoded by Args..., i.e., it can be invoked with these arguments to produce a Boolean result. π₯
Note that RegularInvocable requires the invocation to not modify either the callable object or the arguments, and to be equality-preserving. Periodt.
πΈ Equality preservation πΈ
An expression is equality preserving if it results in equal outputs given equal inputs. Ngl, thatβs the whole mood.
- The inputs to an expression consist of its operands.
- The outputs of an expression consist of its result and all operands modified by the expression (if any).
Every expression required to be equality preserving is further required to be stable: two evaluations of such an expression with the same input objects must have equal outputs absent any explicit intervening modification of those input objects. Literally the consistency icon π
Thatβs the whole page, bestie π Source: http://cppreference.com Β· date: 2024.06.10 Β· footer title: std::experi...::Predicate(3). 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