C++提取出std::map中的key集合
std::map<std::string, uint32_t> dictionary std::set<const std::string *> keySet; // std::back_inserter(keyVector) std::transform(dictionary.begin(), dictionary.end(), std::inserter(keySet, keySet.end()), [](std::pair<const std::string, uint32_t> &pair) { return &(pair.first); }); //