M
Michael
This may seem like a sophomoric question, but I can't really seem to
find any documentation on this problem specifically.
I've created a map of key/value pairs, along with a static function
that accepts a value from the map (said function has no knowledge of
the map).
I'm attempting to iterate over the map, calling this function for
every value in the container. The problem is that for_each attempts
to pass an std:air object rather than the std:air.second that I'm
looking for. Note that this function was not created specifically for
the algorithm.
Are there any standard adapters to do this transition directly? If
not, how would you suggest doing this, short of writing a functor to
work with the pair directly.
- Michael
find any documentation on this problem specifically.
I've created a map of key/value pairs, along with a static function
that accepts a value from the map (said function has no knowledge of
the map).
I'm attempting to iterate over the map, calling this function for
every value in the container. The problem is that for_each attempts
to pass an std:air object rather than the std:air.second that I'm
looking for. Note that this function was not created specifically for
the algorithm.
Are there any standard adapters to do this transition directly? If
not, how would you suggest doing this, short of writing a functor to
work with the pair directly.
- Michael