Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 C++ 中为地图中的每个键都有一个链表。
是的,std::map<int, std::list<SomeType>>在 C++ 中是可能的。
std::map<int, std::list<SomeType>>
看看ideone,它对于测试诸如此类的简单事物很有用。