std::ranges..._view::pred(3)
πΈ NAME πΈ
okay bestie, welcome to std::ranges..._view::pred(3) in the C++ Standard Libary section β yes, thatβs the manual-name situation, and we are so ready. β¨
std::ranges::take_while_view::pred β and yep, itβs literally std::ranges::take_while_view::pred again. The name said what it said, and it ate. π
β¨ Synopsis β¨
constexpr const Pred& pred() const; (since C++20)
It returns a reference to the stored predicate. Thatβs the tea. π«
π¨ Real talk, bestie: if*thisdoes not store a predicate (e.g. an exception is thrown on the assignment to*this, which copy-constructs or move-constructs aPred), the behavior is undefined. That is not a vibe. That is a no-no, fr fr. π
π Parameters π
(none) β literally no parameters, bestie. Zero. Nada. Zilch. π
π Return value π
A reference to the stored predicate. Periodt. Thatβs the whole return-value moment. π
π Example π
bestie, the example section is giving placeholder energy:
This section is incomplete
Reason: no example
π¦ Category π¦
* Todo no exampleβ thatβs the category/todo note, fr.
Made with love from http://cppreference.com, dated 2024.06.10 β mwah, kiss kiss, go read the predicate page and stay hydrated πβ¨
π¦ 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