concurrent_unordered_set::equal_range Method

Finds a range that matches a specified key. This function is concurrency safe.

std::pair<iterator, iterator> equal_range(
   const key_type& _Keyval
);

std::pair<const_iterator, const_iterator> equal_range(
   const key_type& _Keyval
) const;

_Keyval

The key value to search for.

A pair where the first element is an iterator to the beginning and the second element is an iterator to the end of the range.

It is possible for concurrent inserts to cause additional keys to be inserted after the begin iterator and before the end iterator.

Header: internal_concurrent_hash.h

Namespace: concurrency

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft