std::ranges...perator*,->(3)
π std::ranges...perator*,->(3) π
okay so bestie, this page is from the C++ Standard Libary manual (yes, thatβs how itβs spelled here, no cap), and itβs all about the operator* and operator-> for std::ranges::join_view::iterator. Very niche, very main character, but weβre gonna get through it together.
πΈ NAME πΈ
std::ranges::join_view::iterator::operator*,->β and the short description is literallystd::ranges::join_view::iterator::operator*,->too. The page says it twice, so weβre saying it twice. Periodt.
π Synopsis π
constexpr decltype(auto) operator*() const; (1)
(since C++20)
constexpr InnerIter operator->() const (2)
(since C++20)
requires /*has-arrow*/<InnerIter> && std::copyable<InnerIter>;
Two overloads, both since C++20. Overload (2) has that requires clause: /*has-arrow*/<InnerIter> && std::copyable<InnerIter>; β donβt skip it, bestie.
Returns the element the underlying iterator inner_ points to.
(1)is equivalent toreturn *inner_;.(2)is equivalent toreturn inner_;.
π Parameters π
- Parameters:
(none)β literally zero parameters. Not one. Nada. π
π Return value π
- Return value: the current element. Thatβs it. Thatβs the vibe.
π Example π
This section is incomplete.
Reason: no example.
Not me crying because thereβs no example π. Anyway.
π Category π
* Todo no exampleβ yeah, itβs a todo and thereβs no example. We move.
cute sign-off: this page came from http://cppreference.com, dated 2024.06.10. Stay slay, bestie πβ¨
π¦ 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