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.

Struct template id_translator

boost::property_tree::id_translator — Simple implementation of the Translator concept. It does no translation.


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

template<typename T> 
struct id_translator {

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


id_translator public member functions

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