Luna::UnorderedMap::equal_range

Pair< const_iterator, const_iterator > equal_range(const key_type &key) const

Gets one pair of iterators specifying one range of elements whose keys are equal to the specified key.

Parameters

  • in key

    The key to test.

Return value

Returns the element range.

Remark

Since this map does not allow inserting multiple elements with the same key, the returned range will contain only one element if the key exists, or empty if the key does not exist.