|
template<class F , class Fn = decltype( scl::tools::meta ::as_fn(std::declval<F>())), class T = scl::tools::meta ::remove_cv_ref_t< scl::tools::meta ::arg_t<Fn, 0>>> |
details::for_each_toolbox< T > | forEach (F callback) |
| Invoke a function on each element of a stream. More...
|
|
template<class T > |
details::for_each_toolbox< T > | forEach_ (typename details::for_each_toolbox< T >::callback_t cb) |
| Invoke a function on each element of a stream by providing the type arguments. More...
|
|
template<class T > |
void | operator| (const Stream< T > &lhs, const details::for_each_toolbox< T > &rhs) |
| Pipe operator overload for forEach terminators. More...
|
|
template<class T > |
pack::details::SetPacker< T >::result_type | operator| (const Stream< T > &lhs, const pack::details::to_set_toolbox &_) |
| Pipe operator for packing into a set. More...
|
|
template<class T , class Compare , class Allocator > |
pack::details::SetPacker< T >::result_type | operator| (const Stream< T > &lhs, const pack::details::to_set_toolbox_alloc< Compare, Allocator > &_) |
| Pipe operator or packing into a set using a specific allocator and comparator. More...
|
|
template<class T > |
pack::details::VectorPacker< T >::result_type | operator| (const Stream< T > &lhs, const pack::details::to_vector_toolbox &_) |
| Pipe operator for packing into a vector. More...
|
|
template<class T , class Allocator > |
pack::details::VectorPacker< T, Allocator >::result_type | operator| (const Stream< T > &lhs, const pack::details::to_vector_toolbox_alloc< Allocator > &_) |
| Pipe operator or packing into a vector using a specific allocator. More...
|
|
Namespace for stream terminal/final operations (eager)
template<class F , class Fn = decltype( scl::tools::meta ::as_fn(std::declval<F>())), class T = scl::tools::meta ::remove_cv_ref_t< scl::tools::meta ::arg_t<Fn, 0>>>
Invoke a function on each element of a stream.
- Template Parameters
-
F | being the callback type (deduced) |
Fn | being the function wrapper type (computed) |
T | being the value type (computed) |
- Parameters
-
callback | being the callback |
- Returns
- a toolbox tag for pipe operator
Definition at line 94 of file forEach.h.