sentinel_for

sentinel_for (센티널 개념)

std::sentinel_for는 반복자의 끝을 표시하는 센티널 타입의 개념이에요. C++20에서 추가됐어요.

출처: cppreference

본문

std::sentinel_forSI 타입 반복자의 센티널로 쓸 수 있는지를 나타내요.

template< class S, class I >
concept sentinel_for =
    std::semiregular<S> && std::input_or_output_iterator<I> && ...;

SI를 비교할 수 있어야 해요.

더 알아보기 (Learn more)

cppreference