Boost C++ 库

...世界上最受尊敬、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

函数模板 dynamic_cast_ - Boost C++ 函数库
PrevUpHomeNext

函数模板 dynamic_cast_

boost::xpressive::dynamic_cast_ — dynamic_cast_ 是一个用于动态转换参数类型的惰性函数。

提要

// In header: <boost/xpressive/regex_actions.hpp>


template<typename T, typename A> unspecified dynamic_cast_(A const & a);

描述

参数

a

要动态转换的惰性值。

模板参数

T

要将参数动态转换为的目标类型。

返回

一个惰性对象,当对其进行求值时,它会将其参数动态转换为所需类型。


PrevUpHomeNext