std::basic_...erator::base(3)

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

πŸ’… std::basic_...erator::base(3) πŸ’…

okay so bestie, this page is from the C++ Standard Libary manual, and the title is giving chaotic std::basic_...erator::base(3) energy β€” but we're keeping every detail, no cap. ✨


✨ NAME ✨

std::basic_const_iterator::base - std::basic_const_iterator::base


🌸 Synopsis 🌸

Two overloads, both since C++23, and they are literally the whole point:

constexpr const Iter& base() const& noexcept; (1) (since C++23)
constexpr Iter base() &&;                     (2) (since C++23)

Returns the underlying base iterator. Like, it hands you the iterator underneath. 🫢

  1. Returns a reference to the underlying iterator.
  2. Move constructs the return value from the underlying iterator.

πŸŽ€ Parameters πŸŽ€

(none) β€” she takes nothing, your fave low-maintenance icon. πŸ’…


πŸ’– Return value πŸ’–

  1. A reference to the underlying iterator.
  2. An iterator move constructed from the underlying iterator.

periodt. that's the return value, and it's exactly what it says on the tin. πŸ’–


πŸ¦‹ Example πŸ¦‹

This section is incomplete.

Reason: no example.

😭 it's giving "trust me bestie, no example yet," but we keep the note fr fr.


🌈 See also 🌈

  • operator* β€” accesses the pointed-to element
  • operator-> β€” (public member function)

πŸ’… Category πŸ’…

  • Todo no example

mwah πŸ’‹ β€” source/version check: this one comes from http://cppreference.com, dated 2024.06.10, with the footer title std::basic_...erator::base(3). go off, bestie πŸ’–

πŸ“¦ where this page comes from