ranges_cend

ranges_cend (범위 상수 끝 센티널)

std::ranges::cend은 const 한정 인자의 끝을 나타내는 센티널을 반환하는 커스터마이제이션 포인트 객체예요. C++20부터 사용할 수 있어요.

출처: cppreference

본문

<ranges> 헤더에 정의되어 있고, <iterator> 헤더에도 정의돼요.

inline namespace /* unspecified */ {
    inline constexpr /* unspecified */ cend = /* unspecified */;
}

(since C++20) (customization point object)

호출 시그니처:

template< class T >
    requires /* see below */
constexpr /* see below */ auto cend( T&& t );

(since C++20)

const 한정 인자의 끝(C++23부터 상수 반복자)을 나타내는 센티널을 반환해요.

ranges::cend(t)은 표현식 등가로 ranges::end(/*const-cast*/<const T&>(t))과 같으며, 그 결과는 센티널이어야 해요.

참고 (Notes)

cend은 const-캐스팅된 인자에 대해 end를 호출해요.

더 알아보기 (Learn more)

cppreference