std::ranges...rator::base(3)

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

πŸ¦‹ NAME πŸ¦‹

okay so this page is all about std::ranges::stride_view::iterator::base β€” and the manual page itself is std::ranges...rator::base(3) from the C++ Standard Libary (yes bestie, β€œLibary” with one r β€” that’s literally how it’s printed here, no cap 😭). It’s the little helper that hands back the iterator hiding underneath, and it’s giving β€œsmall but iconic” energy. πŸ’…


✨ Synopsis ✨

Two overloads, both constexpr, both since C++23. Here’s the exact shape:

constexpr ranges::iterator_t<Base> base() &&;                     (1)

(since C++23)

constexpr const ranges::iterator_t<Base>& base() const& noexcept; (2)

(since C++23)

This one returns the underlying iterator. Let current_ be the underlying iterator.

  1. Overload (1) β€” Equivalent to: return std::move(current_);.
  2. Overload (2) β€” Equivalent to: return current_;.

🌸 Parameters 🌸

(none) β€” literally zero parameters, bestie. Nothing to pass, nothing to stress about. 🫢


πŸŽ€ Example πŸŽ€

This section is incomplete.

Reason: no example.

so there’s no example to show off rn β€” it’s giving unfinished homework 😭


πŸ’œ Category πŸ’œ

  • Todo no example

mwah πŸ’‹ β€” this gem came from http://cppreference.com and is dated 2024.06.10; it’s the std::ranges...rator::base(3) page. bye bestie, go slay some iterators 🫢✨

πŸ“¦ where this page comes from