Namespaces
Variants

std::ranges::concat_view<Views...>::iterator<Const>::operator*

cppreference.net에서
 
 
범위 라이브러리
범위 어댑터
 
 
constexpr decltype(auto) operator*() const;
(C++26부터)

현재 concat_view의 요소에 대한 참조를 반환합니다.

using reference = concat-reference-t <maybe-const <Const, Views>...>;
return std::visit([](auto&& it) -> reference { return *it; }, it_ );
와 동일합니다.

만약 it_ .valueless_by_exception()이(가) true이면, 동작은 정의되지 않습니다.

반환값

위에서 설명한 바와 같습니다.

참고 사항

operator - > 는 제공되지 않습니다.

예제

참고 항목

(C++26)
인덱스로 요소에 접근
(public member function)