How to Retrieve the Firsts from a Collection of Pairs
▻http://isocpp.org/feeder/?FeederAction=clicked&feed=All+Posts&seed=http%3A%2F%2Fisocpp.org%2Fblog%2F2
Simple.
How to Retrieve the Firsts from a Collection of Pairs by Jonathan Boccara
From the article:
When using the STL, there is a use case that pops up every now and then and that often causes more trouble than necessary: if we have a collection of pairs, like an std::vector of pairs, or simply a std::map, how can we retrieve the collection of the first elements of each item in the collection?
#News,Articles&_Books,