## Stack::Contains method


检查容器中是否存在特定项；比较时使用 operator ==。

```cpp
virtual bool System::Collections::Generic::Stack<T>::Contains(const T &item) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| item | const T\& | 要查找的项。 |

### ReturnValue

如果找到项则为 true，否则为 false。

## 另见

* Class [Stack](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
