|
coveo::linq
Implementation of .NET-like LINQ operators in C++
|
Returns nth element in a sequence. More...
Functions | |
| template<typename = void> | |
| auto | coveo::linq::element_at (std::size_t n) -> detail::element_at_impl<> |
| Returns nth element in sequence. More... | |
The element_at operator returns the nth element in the sequence. If the sequence does not have enough elements, an exception is thrown.
This is a terminal operator.
.NET equivalent: ElementAt
| auto coveo::linq::element_at | ( | std::size_t | n | ) | -> detail::element_at_impl<> |
Returns the nth element in a sequence. If the sequence does not have enough elements, coveo::linq::out_of_range is thrown.
Use like this:
| n | 0-based index of element to return. |
nth element in sequence. | coveo::linq::out_of_range | The sequence does not have enough elements. |
1.8.15