coveo::linq
Implementation of .NET-like LINQ operators in C++
|
Checks if no element in a sequence satisfy a predicate. More...
Functions | |
template<typename Pred > | |
auto | coveo::linq::none (const Pred &pred) -> detail::none_impl< Pred > |
Checks elements in a sequence against a predicate. More... | |
The none
operator scans a sequence and validates that none of its elements satisfy a given predicate.
This is a terminal operator.
.NET equivalent: n/a
auto coveo::linq::none | ( | const Pred & | pred | ) | -> detail::none_impl<Pred> |
Scans a sequence and calls a predicate with each element. The predicate must return true
if the element satisfies the predicate. The final result will indicate if no elements satisfy the predicate.
Works on empty sequences (returns true
in such a case).
Use like this:
pred | Predicate to satisfy. |
true
if no element in sequence satisfy pred
.