std::ranges...rator::base(3)
π¦ 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.
- Overload
(1)β Equivalent to:return std::move(current_);. - 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
- 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