Boost.OpenMethod

    • Introduction
    • Open-Methods 101
    • Performance
    • Smart Pointers
    • Headers
    • Namespaces
    • Friendship
    • Multiple Dispatch
    • Advanced Features
      • Core API
      • Registries and Policies
      • Custom RTTI
      • Error Handling
      • Virtual Pointer Alternatives
      • Shared Libraries
    • Reference
      • Headers
      • Macros
      • Namespace boost::openmethod
  • boost::openmethod::policies::RttiFn::dynamic_type
arrow_upward

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);

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