unwrap_reference 構造体テンプレート
-
struct op::unwrap_reference
unwrap_referenceは、boost::reference_wrapper<>を逆ラップする PolymorphicFunctionObject である。
概要
// ヘッダ:<boost/xpressive/regex_actions.hpp> structunwrap_reference{ // メンバクラス、構造体、共用体 template<typename Sig> structresult{ }; template<typename This, typename Ref> structresult<This(Ref &)> { // 型 typedef boost::unwrap_reference< Ref >::type &type; }; template<typename This, typename Ref> structresult<This(Ref)> { // 型 typedef boost::unwrap_reference< Ref >::type &type; }; // 公開メンバ関数 template<typename T> T &operator()(boost::reference_wrapper< T >) const; };