boost::cast_converter
// In header: <boost/iterator/convert_iterator.hpp> template<typename T> struct cast_converter : public boost::one_many_converter< cast_converter< T > > { // types typedef T input_type; typedef T output_type; typedef mpl::int_< 1 > max_output; // public member functions template<typename U, typename Out> Out operator()(U, Out); };
Model of OneManyConverter
that casts its input to its template parameter and writes it to its output.