Sorry for a little bit beginner question. There are vector and vector of pairs
typedef std::vector TItems; typedef std::vector < std::pair <
How about this?
items.reserve(pairs.size()); for (size_t it = 0; it < pairs.size(); ++it) { items.push_back(pairs[it].first); }
Simple to understand and debug.