Is it possible this with unordered_multimap?

Deng Xiyue manphiz@gmail.com
Tue Nov 18 01:05:00 GMT 2008


On Mon, Nov 17, 2008 at 07:15:49PM +0100, Germán Diago wrote:
> Hello, I would like to know if it's possible for a multimap to
> traverse just the values of a given key, and not the others.
> Thanks in advance.

Both multimap and unordered_multimap provide equal_range:

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

where the pair consists the lower_bound and upper_bound, with which
you can do the traverse.



More information about the Libstdc++ mailing list