FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
template<class T , class U >
boost::shared_ptr< T > FB::ptr_cast ( boost::shared_ptr< U > const &  r)

Convenience function for doing a dynamic cast of one boost::shared_ptr to another.

This is simply an alias for boost::dynamic_ptr_cast<T>

rThe value to cast
A boost::shared_ptr<T>; if the dynamic cast failed this will be empty

Definition at line 339 of file APITypes.h.

Referenced by FB::JSAPIProxy::changeObject(), get_jsapi(), and FB::ActiveX::AXDOM::Element::getInnerHTML().

340  {
341  return boost::dynamic_pointer_cast<T>(r);
342  }