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以降)

iterator 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}");
}

関連項目

終端を指すイテレータまたは番兵を返す
(公開メンバ関数)
範囲の先頭を指すイテレータを返す
(カスタマイゼーションポイントオブジェクト)