📜  从向量 C++ 代码示例中删除重复项

📅  最后修改于: 2022-03-11 14:44:57.044000             🧑  作者: Mango

代码示例3
std::vector name;

....
if (std::find(name.begin(), name.end(), someName) == name.end()) {
  // someName not in name, add it
  name.push_back(someName);
}