Listing A


// default formatter for elements - writes them to the stream

class default_transformation

{

public:

  template< class StreamType, class Type>

  void operator() ( StreamType & streamOut, const Type & value)

  {

    streamOut << value;

  }

};