## IEnumerable::LINQ_Any() method


Determines whether a sequence contains any elements.

```cpp
bool System::Collections::Generic::IEnumerable<T>::LINQ_Any()
```


### ReturnValue

true if the source sequence contains any elements; otherwise, false.

## See Also

* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
## IEnumerable::LINQ_Any(std::function\<bool(T)>) method


Determines whether any element of a sequence exists or satisfies a condition.

```cpp
bool System::Collections::Generic::IEnumerable<T>::LINQ_Any(std::function<bool(T)> predicate)
```


| Parameter | Type | Description |
| --- | --- | --- |
| predicate | std::function\<bool(T)> | A function to test each element for a condition. |

### ReturnValue

true if the source sequence contains any elements; otherwise, false.

## See Also

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