boost::openmethod::virtual_traits<std::any const&, Registry>

Specialize virtual_traits for const std::any& (const reference).

Synopsis

Declared in <boost/openmethod/interop/std_any.hpp>

template<class Registry>
struct virtual_traits<std::any const&, Registry>;

Description

Dispatch is based on the runtime type of the value stored in the any, obtained via std::any::type().

Type Aliases

Name

Description

virtual_type

The type used for dispatch.

Static Member Functions

Name

Description

peek

Returns a const reference to the any argument.

vptr

Returns a reference to a v‐table pointer for an object.

cast

Cast to a type.

Template Parameters

Name

Description

Registry

A registry.

Created with MrDocs