boost::openmethod::policies::std_rtti::fn::dynamic_cast_ref

Casts an object to a type.

Synopsis

template<
    typename D,
    typename B>
static
D
dynamic_cast_ref(B&& obj);

Description

Casts obj to a reference to an instance of D, using dynamic_cast.

Template Parameters

Name Description

D

A reference to a subclass of B.

B

A registered class.

Parameters

Name Description

obj

A reference to an instance of B.

Created with MrDocs