Namespaces
Variants

std::ranges::adjacent_view<V,N>::sentinel

cppreference.net에서
 
 
범위 라이브러리
범위 어댑터
 
 
template< bool Const >
class /*sentinel*/;
(설명 전용*)
(C++23부터)

반환 타입은 adjacent_view::end 기반 뷰가 common_range이 아닐 때 사용됩니다.

/*sentinel*/<true> 타입은 const 한정 오버로드에 의해 반환됩니다. /*sentinel*/<false> 타입은 비-const 한정 오버로드에 의해 반환됩니다.

멤버 형식

형식 정의
Base (비공개) maybe-const <Const, V>
(설명 전용 멤버 형식*)

데이터 멤버

멤버 설명
end_ (비공개) 로부터 얻은 센티널 maybe-const <Const, V>
(exposition-only member object*)

멤버 함수

sentinel을 생성합니다
(public member function)

비멤버 함수

(C++23)
sentinel과 adjacent_view::begin 에서 반환된 iterator를 비교합니다
(함수)
(C++23)
sentinel과 adjacent_view::begin 에서 반환된 iterator 사이의 거리를 계산합니다
(함수)

예제

참조문헌

  • C++23 표준 (ISO/IEC 14882:2024):
  • 26.7.25.4 클래스 템플릿 adjacent_view::sentinel [range.adjacent.sentinel]

참고 항목

웹페이지의 텍스트를 한국어로 번역합니다: HTML 태그나 속성은 번역하지 마십시오. 원래 서식을 유지하십시오. ,
,  태그 내부의 텍스트는 번역하지 마십시오.
C++ 관련 용어는 번역하지 마십시오. 정확성과 전문성이 요구됩니다.