Namespaces
Variants

std::ranges::drop_view<V>:: base

From cppreference.net
Ranges library
Range adaptors
constexpr V base ( ) const & requires std:: copy_constructible < V > ;
(1) (C++20以降)
constexpr V base ( ) && ;
(2) (C++20以降)

基になるビューのコピーを返します。

1) 基盤となるビュー base_ から結果をコピー構築します。
2) 基盤となるビュー base_ から結果をムーブ構築します。

戻り値

基となる(適応された)ビューのコピー base_

#include <iostream>
#include <ranges>
namespace stq {
void println(auto, const auto& v)
{
    for (const auto& e : v)
        std::cout << e << ' ';
    std::cout << '\n';
}
}
int main()
{
    static constexpr int a[]{1, 2, 3, 4, 5};
    constexpr auto view = a | std::views::drop(2);
    stq::println("{}", view);
    const auto base = view.base();
    stq::println("{}", base);
}

出力:

3 4 5
1 2 3 4 5