R
rg
Dear all,
I was wondering whether there was a C++ STL compliant way of using std::map
iterators with the standard STL algorithms. I know there is the select1st
and select2nd adaptors but they are not part of the C++ standard.
I'm assuming that people will have met this problem before, what kind of
solutions do you normally use for it?
I could always create custom algorithms to be used specifically with maps
but I want to avoid this so that I can still use my map containers with the
existing supply of C++ algorithms.
Any help would be greatly appreciated. Many Thanks in advance.
RG
I was wondering whether there was a C++ STL compliant way of using std::map
iterators with the standard STL algorithms. I know there is the select1st
and select2nd adaptors but they are not part of the C++ standard.
I'm assuming that people will have met this problem before, what kind of
solutions do you normally use for it?
I could always create custom algorithms to be used specifically with maps
but I want to avoid this so that I can still use my map containers with the
existing supply of C++ algorithms.
Any help would be greatly appreciated. Many Thanks in advance.
RG