다음을 통해 공유


set::key_compare

A type that provides a function object that can compare two sort keys to determine the relative order of two elements in the set.

typedef Traits key_compare;

설명

key_compare is a synonym for the template parameter Traits.

자세한 내용은 Traitsset 클래스 항목을 참조하십시오.

Note that both key_compare and value_compare are synonyms for the template parameter Traits. Both types are provided for the set and multiset classes, where they are identical, for compatibility with the map and multimap classes, where they are distinct.

예제

See the example for key_comp for an example of how to declare and use key_compare.

요구 사항

헤더: <설정>

네임스페이스: std

참고 항목

참조

set 클래스

표준 템플릿 라이브러리