std::ranges..._view::base(3)

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

πŸ’… std::ranges..._view::base(3) πŸ’…

okay bestie, welcome to the C++ Standard Libary manual corner of the group chat β€” yes, that spelling is staying, we respect the lore. This page is filed under std::ranges..._view::base(3), and its actual NAME is std::ranges::drop_view::base, which is giving β€œsame energy, different spelling” and honestly? iconic. ✨


🌸 NAME 🌸

std::ranges::drop_view::base β€” std::ranges::drop_view::base

No cap, that’s the whole name, and the symmetry is lowkey satisfying. πŸ’–


πŸ¦‹ Synopsis πŸ¦‹

Here’s the exact signature tea, bestie:

constexpr V base() const& requires std::copy_constructible<V>; (1)
       (since C++20)
          constexpr V base() &&;                                         (2)
       (since C++20)

Returns a copy of the underlying view. Periodt. πŸ’…

  1. Copy constructs the result from the underlying view.
  2. Move constructs the result from the underlying view.

πŸ’– Parameters πŸ’–

(none)

Literally zero parameters. The vibe check is empty in the best way. πŸŽ€


🌈 Return value 🌈

A copy of the underlying view.

That’s it. That’s the return value. Slay. πŸ¦‹


πŸŽ€ Example πŸŽ€

This section is incomplete.

Reason: no example.

Not me seeing no example and feeling personally attacked 😭 β€” but that’s the facts, fr fr.


πŸ‘‘ Category πŸ‘‘

  • Todo no example

mwah πŸ’‹ β€” source/version: http://cppreference.com, dated 2024.06.10. Stay hydrated and keep those overloads cute. 🫢

πŸ“¦ where this page comes from