coveo::linq
Implementation of .NET-like LINQ operators in C++
|
Returns maximum element in a sequence. More...
Functions | |
template<typename = void> | |
auto | coveo::linq::max () -> detail::max_impl_0<> |
Returns maximum element in sequence. More... | |
template<typename Selector > | |
auto | coveo::linq::max (const Selector &sel) -> detail::max_impl_1< Selector > |
Returns maximum projected value in sequence. More... | |
The max
operator returns the maximum element in a sequence. If the sequence does not have elements, an exception is thrown.
This is a terminal operator.
.NET equivalent: Max
auto coveo::linq::max | ( | ) | -> detail::max_impl_0<> |
Returns the maximum element in a sequence. If the sequence does not have elements, coveo::linq::empty_sequence
is thrown.
Use like this:
coveo::linq::empty_sequence | The sequence does not have elements. |
auto coveo::linq::max | ( | const Selector & | sel | ) | -> detail::max_impl_1<Selector> |
Returns the maximum value in a sequence by projecting each element to a different value using the provided selector. If the sequence does not have elements, coveo::linq::empty_sequence
is thrown.
Use like this:
sel | Selector called to project each element into a different value. |
coveo::linq::empty_sequence | The sequence does not have elements. |