static_cast_ 構造体テンプレート

template<typename T>
struct op::static_cast_

static_cast_<> は、引数を異なる型へ静的キャストする PolymorphicFunctionObject である。

テンプレートパラメータ

T -- 静的キャスト先の型。

概要

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

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

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

説明

static_cast_ 公開メンバ関数

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

val -- 静的キャストする値。

戻り値

static_cast<T>(val)