boost::converted_segmenter
// In header: <boost/iterator/segment_iterator.hpp> template<typename Converter, typename Segmenter> struct converted_segmenter { // types typedef Converter::input_type input_type; // construct/copy/destruct converted_segmenter(); converted_segmenter(Converter, Segmenter); // public member functions BOOST_CONCEPT_ASSERT((ConverterConcept< Converter >)); BOOST_CONCEPT_ASSERT((SegmenterConcept< Segmenter >)); BOOST_CONCEPT_ASSERT((Convertible< typename Converter::output_type, typename Segmenter::input_type >)); BOOST_MPL_ASSERT((mpl::equal_to< typename Converter::max_output, mpl::int_< 1 > >)); template<typename In> void ltr(In &, In); template<typename In> void rtl(In, In &); };
Model of Segmenter
that adapts the elements another Segmenter
sees with a model of Converter
, assuming its max_output
is 1
.
converted_segmenter
public member functionsBOOST_CONCEPT_ASSERT((ConverterConcept< Converter >));
BOOST_CONCEPT_ASSERT((SegmenterConcept< Segmenter >));
BOOST_CONCEPT_ASSERT((Convertible< typename Converter::output_type, typename Segmenter::input_type >));
BOOST_MPL_ASSERT((mpl::equal_to< typename Converter::max_output, mpl::int_< 1 > >));
template<typename In> void ltr(In & begin, In end);
template<typename In> void rtl(In begin, In & end);