## Queue::Contains method


检查队列是否包含特定元素，使用运算符 == 来比较元素。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 项 | const T\& | 要查找的项。 |

### ReturnValue

如果项目存在则为 true，否则为 false。

## 另见

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