std::ranges..._view::base(3)
π NAME π
std::ranges::elements_view::base β okay bestie, thatβs the function, and the page name is literally the same thing twice: std::ranges::elements_view::base and std::ranges::elements_view::base. We love a consistent queen π
.
Welcome to the std::ranges..._view::base(3) page from the C++ Standard Libary manual β yes, thatβs the manual name, keep it cute π.
π¦ Synopsis π¦
Two overloads, both since C++20, no cap:
constexpr V base() const& requires std::copy_constructible<V>; (1)
(since C++20)
constexpr V base() &&; (2)
(since C++20)
Hereβs the tea: this whole thing returns a copy of the underlying view. Overload (1) copy constructs the result from the underlying view. Overload (2) move constructs the result from the underlying view. Thatβs it, thatβs the vibe β¨.
πΈ Parameters πΈ
(none) β zero, nada, empty group chat energy π«Ά.
π Return value π
A copy of the underlying view. Yep, exactly that β a copy of the underlying view π.
π§ Example π§
This section is incompleteReason: no example
Not me waiting for an example that never arrives π. The manpage said what it said.
π Category π
Todo no example
The category tag is doing the most, and honestly? Same.
Source vibe: cppreference.com Β· date on the page: 2024.06.10 Β· manual: C++ Standard Libary β bye bestie, hydrate and ship it π
π
π¦ 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