construct 構造体テンプレート

template<typename T>
struct op::construct

construct<> は、新しいオブジェクトを構築する PolymorphicFunctionObject である。

テンプレートパラメータ

T -- 構築するオブジェクトの型。

概要

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

template<typename T>
struct construct {
  // 型
  typedef T result_type;

  // 公開メンバ関数
  T operator()() const;
  template<typename A0> T operator()(A0 const &) const;
  template<typename A0, typename A1>
    T operator()(A0 const &, A1 const &) const;
  template<typename A0, typename A1, typename A2>
    T operator()(A0 const &, A1 const &, A2 const &) const;
};

説明

construct 公開メンバ関数

T operator()() const

利便性のためのメンバ関数多重定義。上記関数と受け取る引数が異なるのみ。

template<typename A0>
T operator()(A0 const &a0) const

利便性のためのメンバ関数多重定義。上記関数と受け取る引数が異なるのみ。

template<typename A0, typename A1>
T operator()(A0 const &a0, A1 const &a1) const

利便性のためのメンバ関数多重定義。上記関数と受け取る引数が異なるのみ。

template<typename A0, typename A1, typename A2>
T operator()(A0 const &a0, A1 const &a1, A2 const &a2) const
パラメータ
  • a0 -- コンストラクタの第 1 引数

  • a1 -- コンストラクタの第 2 引数

  • a2 -- コンストラクタの第 3 引数

戻り値

T(a0, a1, ...)