Boost C++ 库

...世界上评价最高、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

结构体模板 id_translator - Boost C++ 函数库
PrevUpHomeNext

结构体模板 id_translator

boost::property_tree::id_translator — Translator 概念的简单实现。它不做任何翻译。

提要

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

template<typename T> 
struct id_translator {
  // types
  typedef T internal_type;
  typedef T external_type;

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

描述

id_translator 公共成员函数

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

PrevUpHomeNext