indirectly_comparable

indirectly_comparable (간접 비교 가능 개념)

std::indirectly_comparable는 두 반복자 범위를 비교 연산자로 비교할 수 있는 개념이에요. C++20에서 추가됐어요.

출처: cppreference

본문

std::indirectly_comparable은 두 위치의 값을 Comp로 비교할 수 있는 타입을 나타내요.

template< class I1, class I2, class R, class P1 = ..., class P2 = ... >
concept indirectly_comparable = ...;

이진 탐색·집합 알고리즘에 사용돼요.

더 알아보기 (Learn more)

cppreference