Namespaces
Variants

std::ranges::adjacent_transform_view<V,F,N>::iterator<Const>::operator*

출처: ko.cppreference.net
 
 
범위 라이브러리
범위 어댑터
 
 
constexpr decltype(auto) operator*() const noexcept(/* see below */);
(C++23부터)

현재 요소를 adjacent_transform_view에서 반환합니다.

parent_와 inner_을(를) iterator의 데이터 멤버라고 할 때, 다음과 동일합니다:

return apply([&](const auto&... iters) -> decltype(auto)
             {
                 return invoke(*parent_->fun_, *iters...);
             },
             inner_.current_);

매개변수

(없음)

반환값

현재 요소.

예외

Is 를 0, 1, ..., (N - 1) 패킷이라고 하자.

noexcept 명세:
noexcept ( std:: invoke ( * parent_ - > fun_, * std :: get < Is > ( inner_. current_ ) ... ) )

예제

참고 항목

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