Is there a way I can create a unordered_map such that it is something like,
unordered_map<string,linkedlist>
Basically, I will be inputting the key value, and if any string (its sorted value) equals the already stored key value, then I will insert that string in the linkedlist for that sorted value. How do I declare such an unordered_map?
std::unordered_map<std::string, std::list<std::string> > data;
尽管我很难理解您到底要完成什么...我不确定是否需要链表列表
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.