boost::openmethod::policies::RttiFn::dynamic_type

Returns the dynamic type_id of an object.

Synopsis

Declared in <boost/openmethod/preamble.hpp>

template<class Class>
static
type_id
dynamic_type(Class const& obj);

Description

Required for every class that is_polymorphic deems polymorphic, and never called for any other, so a policy that deems no class polymorphic may omit it.

Return Value

The type_id of obj's class.

Template Parameters

Name

Description

Class

A registered class.

Parameters

Name

Description

obj

A reference to an instance of Class.

Created with MrDocs