Namespaces
Variants

std::ranges::join_with_view<V,Pattern>:: join_with_view

From cppreference.net
Ranges library
Range adaptors
join_with_view ( )

requires std:: default_initializable < V > &&

std:: default_initializable < Pattern > = default ;
(1) (C++23 이후)
constexpr explicit join_with_view ( V base, Pattern pattern ) ;
(2) (C++23 이후)
template < ranges:: input_range R >

requires std:: constructible_from < V, views:: all_t < R >> &&
std:: constructible_from
< Pattern, ranges:: single_view
< ranges:: range_value_t < /*InnerRng*/ >>>
constexpr explicit join_with_view

( R && r, ranges:: range_value_t < /*InnerRng*/ > e ) ;
(3) (C++23 이후)

join_with_view 를 생성하고, 기본 뷰 base_ 와 저장된 패턴 pattern_ 를 초기화합니다.

오버로드 데이터 멤버
base_ pattern_
(1) 값 초기화 값 초기화
(2) std :: move ( base ) 로 초기화 std :: move ( pattern ) 로 초기화
(3) views:: all ( std:: forward < R > ( r ) ) 로 초기화 views:: single ( std :: move ( e ) ) 로 초기화

매개변수

base - 평탄화될 범위의 뷰
pattern - 구분자로 사용될 뷰
e - 구분자로 사용될 요소

예제