---
title: "System::Collections::Generic::List::Exists method"
url: "https://reference.aspose.com/tex/cpp/system.collections.generic/list/exists/"
product: "Aspose.TeX for C++"
description: "System::Collections::Generic::List::Exists method. Checks if element adhering to specific predicate exists in list in C++."
---

## List::Exists method


Checks if element adhering to specific predicate exists in list.

```cpp
bool System::Collections::Generic::List<T>::Exists(System::Predicate<T> match)
```


| Parameter | Type | Description |
| --- | --- | --- |
| match | System::Predicate\<T\> | [Predicate](../../../system/predicate/) to check elements with. |

### ReturnValue

True if matching element is found, false otherwise.

## See Also

* Typedef [Predicate](../../../system/predicate/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.TeX for C++](../../../)
