System::Collections::Generic::Stack::Contains 方法

Stack::Contains method

检查容器中是否存在特定项;使用运算符 == 进行比较。

virtual bool System::Collections::Generic::Stack<T>::Contains(const T &item) const
参数类型描述
const T&要查找的项。

ReturnValue

若找到项则为 true,否则为 false。

另见