const_cast_ 構造体テンプレート

template<typename T>
struct op::const_cast_

const_cast_<> は、引数を CV 修飾へ const キャストする PolymorphicFunctionObject である。

テンプレートパラメータ

T -- const キャスト先の型。

概要

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

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

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

説明

const_cast_ 公開メンバ関数

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

val -- const キャストする値。

要件

TValue の違いが CV 修飾子のみである。

戻り値

const_cast<T>(val)