Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template consumed

boost::consumed

Synopsis

// In header: <boost/iterator/consumer_iterator.hpp>


template<typename Range, typename Consumer> 
  iterator_range< consumer_iterator< typename range_iterator< Range >::type, Consumer > > 
  consumed(Range & range, Consumer c);

Description

Requires: ((SinglePassRangeConcept<Range>)) ((ConsumerConcept<Consumer>)) ((Convertible<typename range_value<Range>::type, typename Consumer::input_type>))


PrevUpHomeNext