Return the key‐comparison functor used by this set.
Synopsis
Declared in <bslstl_set.h>
set<KEY, COMPARATOR, ALLOCATOR>::key_compare
key_comp() const;
Description
If a comparator was supplied at construction, return its value, otherwise return a default constructed key_compare object. Note that this comparator compares objects of type KEY, which is the type of the value_type objects contained in this set.
Return Value
copy of the key‐comparison functor
Created with MrDocs