
12 Jul
2009
12 Jul
'09
5:50 a.m.
Joel de Guzman wrote:
Michael Caisse wrote:
Hi all -
I have a vector of std::pair< std::string, int > and I want to use std::find_if to get the location where the std::pair first is some string value. I have successfully performed the correct incantation to compare the std::pair second to an int; however, it eludes me to what I need for the string.
This is my test ---------------------------------- [...]
Try:
#include <string>
Cheers,
How embarrassing. Thank you Joel! -- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com