PrevUpHomeNext

Struct template cast_converter

boost::cast_converter

Synopsis

// 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);
};

Description

Model of OneManyConverter that casts its input to its template parameter and writes it to its output.

cast_converter public member functions

  1. template<typename U, typename Out> Out operator()(U in, Out out);

PrevUpHomeNext