Namespaces
Variants

std::ranges::concat_view<Views...>:: begin

From cppreference.net
Ranges library
Range adaptors
constexpr /*iterator*/ < false > begin ( )
requires ( ! ( /*simple-view*/ < Views > && ... ) ) ;
(1) (начиная с C++26)
constexpr /*iterator*/ < true > begin ( ) const

requires ( ranges:: range < const Views > && ... ) &&

/*concatable*/ < const Views... > ;
(2) (начиная с C++26)

Возвращает итератор на начало concat_view .

1) Эквивалентно iterator  < false > it ( this, std:: in_place_index < 0 > ,
ranges:: begin ( std :: get < 0 > ( views_  ) ) ) ;
it. template satisfy  < 0 > ( ) ;
return it ;
.
2) Эквивалентно iterator  < true > it ( this, std:: in_place_index < 0 > ,
ranges:: begin ( std :: get < 0 > ( views_  ) ) ) ;
it. template satisfy  < 0 > ( ) ;
return it ;
.

Возвращаемое значение

Как указано выше.

Пример

Предварительную версию можно посмотреть на Compiler Explorer .

#include <ranges>
#include <string_view>
using namespace std::literals;
int main()
{
    static constexpr auto c = {"🐱", "🐶"};
    static constexpr auto a = {"🤡"sv};
    static constexpr auto t = {"💚"sv};
    static constexpr auto cat{std::views::concat(c, a, t)};
    static_assert(*cat.begin() == "\U0001F431" and
                  cat.begin()[1] == "🐶" and
                  *(cat.begin() + 2) == "\N{CLOWN FACE}");
}

Смотрите также

возвращает итератор или страж к концу
(публичная функция-член)
возвращает итератор к началу диапазона
(объект точки кастомизации)