Partager via


multiset::value_compare

The type that provides a function object that can compare two sort keys to determine their relative order in the multiset.

typedef key_compare value_compare;

Remarks

value_compare is a synonym for the template parameter Compare.

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

For more information on Compare, see the Remarks section of the multiset Class topic.

Example

See the example for value_comp for an example of how to declare and use value_compare.

Requirements

Header: <set>

Namespace: std

See Also

Reference

multiset Class

Standard Template Library

Other Resources

multiset Members