
10 Feb
2006
10 Feb
'06
3:25 p.m.
"Bill Buklis"
The predicate for std::find_if requires *iterator for the parameter. However, with ptr_map *iterator returns a reference to the element value instead of the key/value pair. Normally this is fine (in general code I like this feature)
Yikes, this sounds like a gratuitous inconsistency with the standard map semantics, and not one that's "obviously better" than the standard one. Why be inventive here? -- Dave Abrahams Boost Consulting www.boost-consulting.com