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

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

🌸 NAME 🌸

okay so bestie, welcome to the std::ranges...::operator[](3) page from the C++ Standard Libary ✨. The icon of the hour is std::ranges::cartesian_product_view::iterator::operator[] β€” and the NAME line is literally std::ranges::cartesian_product_view::iterator::operator[] - std::ranges::cartesian_product_view::iterator::operator[], because why serve the same gorgeous name only once? πŸ’…


πŸ¦‹ Synopsis πŸ¦‹

          constexpr reference operator[]( difference_type n ) const
              requires /*cartesian-product-is-random-access*/<Const, First,
       (since C++23)
          Vs...>;

It returns an element at specified relative location, and it's equivalent to return *((*this) + n); β€” literally that. Also, this whole vibe is marked (since C++23) πŸ”₯.

πŸŽ€ Parameters πŸŽ€

  • n β€” position relative to current location.

πŸ’– Return value πŸ’–

The element at displacement n relative to the current location. Periodt.

πŸ“ Example πŸ“

This section is incomplete. Reason: no example. 😭

🌈 See also 🌈

  • operator* β€” accesses the element (C++23) (public member function).

πŸ‘‘ Category: πŸ‘‘

  • * Todo no example

xoxo, your Unix bestie πŸ’… β€” source: http://cppreference.com, version/date: 2024.06.10, page: std::ranges...::operator[](3). Bye bestie, go be iconic 🫢✨

πŸ“¦ where this page comes from