| Home | Libraries | People | FAQ | More

## Class template stream_translator

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

## Synopsis

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

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

      // public member functions
      explicit stream_translator(std::locale = std::locale());
      boost::optional< E > get_value(const internal_type &);
      boost::optional< internal_type > put_value(const E &);
    };

## Description

### `stream_translator` public member functions

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

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

3.     boost::optional< internal_type > put_value(const E & v);