Observers
Method |
---|
Multimap |
Returns the function that compares keys |
key_compare key_comp() const noexcept; |
Returns the function that compares keys in objects of type value_type |
value_compare value_comp() const noexcept |
SpatialMap |
Returns the function that compares keys in a single dimension |
dimension_compare dimension_comp() const noexcept; |
Return value
A callable function that compares dimensions, keys, or values.
Complexity
\[
O(1)
\]
Notes
These functions return copies of the container's constructor argument comp
, or a wrappers around these copies.
Example
1 2 3 4 5 6 |
|
1 |
|