StackOverflow 文档 C++ 教程 std set 和 std multiset 在多集中插入值 在多集中插入值 Created: November-22, 2018 集合中的所有插入方法也适用于多集合。然而,存在另一种可能性,即提供 initializer_list: auto il = { 7, 5, 12 }; std::multiset<int> msut; msut.insert(il); 在 set 和 multiset 中搜索值在集合中插入值