coveo::linq
Implementation of .NET-like LINQ operators in C++
|
Casts sequence elements to another type. More...
Functions | |
template<typename U > | |
auto | coveo::linq::cast () -> detail::select_impl< detail::indexless_selector_proxy< detail::cast_selector< U >>> |
Casts sequence elements to another type. More... | |
The cast
operator modifies a sequence by casting all its element to another type.
.NET equivalent: Cast
auto coveo::linq::cast | ( | ) | -> detail::select_impl<detail::indexless_selector_proxy<detail::cast_selector<U>>> |
Casts each element in a sequence to another type and returns a new sequence of all such modified elements. The elements are cast using static_cast
.
Use like this:
U | New type to cast elements to. |