|
Boost Users : |
Subject: Re: [Boost-users] [lambda] Defining a predicate for std::find_if if the key to a std::map is std::pair
From: Ryan McConnehey (mccorywork_at_[hidden])
Date: 2009-09-24 12:06:10
std::map::find expects to be passed the key. This means that I would have to pass myMap.find(std::make_pair(givenName, ???));Note that you can use std::map::find instead:
cMap::const_iterator itor = myMap.find(givenName);
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net