second 構造体テンプレート

struct op::second

second は、組の第 2 要素にアクセスする PolymorphicFunctionObject である。

概要

// ヘッダ:<boost/xpressive/regex_actions.hpp>

struct second {
  // メンバクラス、構造体、共用体
  template<typename Sig>
  struct result {
  };
  template<typename This, typename Pair>
  struct result<This(Pair)> {
  // 型
  typedef remove_reference< Pair >::type::second_type result;
  };

  // 公開メンバ関数
  template<typename Pair> Pair::second_type operator()(Pair const &) const;
};

説明

second 公開メンバ関数

template<typename Pair>
Pair::second_type operator()(Pair const &p) const
パラメータ

p -- 第 2 要素にアクセスする対象の組。

戻り値

p.second