std::ranges...::operator[](3)

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

πŸ’… std::ranges::chunk_view::iterator::operator[] πŸ’…

okay bestie, welcome to the C++ Standard Libary manual page for std::ranges::chunk_view::iterator::operator[] β€” yes, that whole thing is the name, she’s extra like that πŸ’–. This is the std::ranges...::operator[](3) page, and it’s giving niche-but-iconic iterator energy ✨.


✨ NAME ✨

std::ranges::chunk_view::iterator::operator[] - std::ranges::chunk_view::iterator::operator[]


πŸ¦‹ Synopsis πŸ¦‹

constexpr value_type operator[]( difference_type pos ) const  (since C++23)
    requires ranges::random_access_range<Base>;

Returns an element at specified relative location.

Equivalent to: return *(*this + pos);.


πŸ’– Parameters πŸ’–

  • pos β€” position relative to current location.

🌸 Return value 🌸

The element (of type value_type) at displacement pos relative to the current location.


πŸŽ€ 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 + date check, bestie: this page came from http://cppreference.com, dated 2024.06.10, and its footer name is std::ranges...::operator[](3) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from