📜  c++ 在向量中查找元素 - C++ 代码示例

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

代码示例3
#include 
#include 
vector vec; 
//can have other data types instead of int but must same datatype as item 
std::find(vec.begin(), vec.end(), item) != vec.end()