std::ranges...::operator[](3)
π NAME π
This is the C++ Standard Libary manual (yes, that spelling is in the header, bestie π), page std::ranges...::operator[](3), and the name is std::ranges::slide_view::iterator::operator[] β the original NAME line literally repeats std::ranges::slide_view::iterator::operator[] after the dash. No cap. π
β¨ Synopsis β¨
Okay so here's the signature, bestie β read it exactly, no vibes-only paraphrasing:
constexpr auto operator[]( difference_type pos ) const (since C++23)
requires ranges::random_access_range<Base>;
It returns an element at specified relative location.
Let current_ and n_ be the underlying data members. Equivalent to:
return views::counted(current_ + pos, n_);.
πΈ Parameters πΈ
posβ position relative to current location.
π¦ Return value π¦
The element (of type value_type) at displacement pos relative to the current location. Slay. β¨
π Example π
This section is incomplete. Reason: no example.
π See also π
operator*β accesses the element (C++23) (public member function). π
π Category π
* Todo no example
π source/version: http://cppreference.com, dated 2024.06.10 β mwah, bye 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