coveo::linq
Implementation of .NET-like LINQ operators in C++
|
Returns minimum element in a sequence. More...
Functions | |
template<typename = void> | |
auto | coveo::linq::min () -> detail::min_impl_0<> |
Returns minimum element in sequence. More... | |
template<typename Selector > | |
auto | coveo::linq::min (const Selector &sel) -> detail::min_impl_1< Selector > |
Returns minimum projected value in sequence. More... | |
The min
operator returns the minimum element in a sequence. If the sequence does not have elements, an exception is thrown.
This is a terminal operator.
.NET equivalent: Min
auto coveo::linq::min | ( | ) | -> detail::min_impl_0<> |
Returns the minimum 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::min | ( | const Selector & | sel | ) | -> detail::min_impl_1<Selector> |
Returns the minimum 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. |