as 構造体テンプレート

template<typename T>
struct op::as

as<> は、引数を異なる型へ字句キャストする PolymorphicFunctionObject である。

テンプレートパラメータ

T -- 引数の字句キャスト先の型。

概要

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

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

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

説明

as 公開メンバ関数

template<typename Value>
T operator()(Value const &val) const
パラメータ

val -- 字句キャストする値。

戻り値

boost::lexical_cast<T>(val)