Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

结构体 str - Boost C++ 函数库
PrevUpHomeNext

结构体 str

boost::xpressive::op::str — str 是一个多态函数对象,用于将 sub_match 转换为等效的 std::string

提要

// In header: <boost/xpressive/regex_actions.hpp>


struct str {
  // member classes/structs/unions
  template<typename Sig> 
  struct result {
  };
  template<typename This, typename Sub> 
  struct result<This(Sub)> {
    // types
    typedef remove_reference< Sub >::type::string_type type;
  };

  // public member functions
  template<typename Sub> Sub::string_type operator()(Sub const &) const;
};

描述

str 公有成员函数

  1. template<typename Sub> Sub::string_type operator()(Sub const & sub) const;

    参数

    sub

    sub_match 对象。

    返回

    sub.str()


PrevUpHomeNext