Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Class template stream_translator

boost::property_tree::stream_translator — Implementation of Translator that uses the stream overloads.


// In header: <boost/property_tree/stream_translator.hpp>

template<typename Ch, typename Traits, typename Alloc, typename E> 
class stream_translator {
  // types
  typedef std::basic_string< Ch, Traits, Alloc > internal_type;
  typedef E                                      external_type;

  // construct/copy/destruct
  stream_translator(std::locale = std::locale());

  // public member functions
  boost::optional< E > get_value(const internal_type &);
  boost::optional< internal_type > put_value(const E &);


stream_translator public construct/copy/destruct

  1. stream_translator(std::locale loc = std::locale());

stream_translator public member functions

  1. boost::optional< E > get_value(const internal_type & v);
  2. boost::optional< internal_type > put_value(const E & v);