boost::pipeline::from
// In header: <boost/pipeline/pipeline.hpp> template<typename T, typename Callable> unspecified from(const Callable & generator);
Creates a segment operating on items produced by a generator function.
The generator function receives a
argument and feeds it with the generated items. The underlying queue will be automatically closed upon return of the generator.queue_back
<T>
This overload accepts lambdas, bind expressions and functors.
To deduce the value_type
of the generator, a hint might be required:
from<int>([](queue_back<int>& qb) {...});
TODO lambda and functor should not require a hint.
Parameters: |
|
||
Returns: |
|