다음을 통해 공유


set::key_type

A type that describes an object stored as an element of a set in its capacity as sort key.

typedef Key key_type;

설명

key_type is a synonym for the template parameter Key.

For more information on Key, see the Remarks section of the set 클래스 topic.

Note that both key_type and value_type are synonyms for the template parameter Key. 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 value_type for an example of how to declare and use key_type.

요구 사항

헤더: <설정>

네임스페이스: std

참고 항목

참조

set 클래스

표준 템플릿 라이브러리