std::ranges..._view::pred(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 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 *this does not store a predicate (e.g. an exception is thrown on the assignment to *this, which copy-constructs or move-constructs a Pred), 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