PrevUpHomeNext

Function template from

boost::pipeline::from

Synopsis

// In header: <boost/pipeline/pipeline.hpp>


template<typename QueueBack, typename R> 
  unspecified from(const std::function< R(QueueBack)> & generator);

Description

Creates a segment operating on items produced by a generator function.

The generator function receives a queue_back<T> argument and feeds it with the generated items. The underlying queue will be automatically closed upon return of the generator.

Parameters:

generator

An std::function receiving a single queue_back<T> argument.

Returns:

segment<terminated, T>


PrevUpHomeNext