boost::openmethod::virtual_traits<boost::type_erasure::any<C, T>&, Registry>

Specialize virtual_traits for boost::type_erasure::any& (mutable reference).

Synopsis

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

template<
    class C,
    typename T,
    class Registry>
struct virtual_traits<boost::type_erasure::any<C, T>&, Registry>;

Description

Dispatch is based on the type of the value bound to the any, obtained via boost::type_erasure::typeid_of. Concept must contain boost::type_erasure::typeid_<>; relaxed implies it.

Type Aliases

Name

Description

virtual_type

The type used for dispatch: the owning any for C.

Static Member Functions

Name

Description

peek

Returns a const reference to the any argument.

vptr

Returns a reference to a v‐table pointer for the bound value.

cast

Cast to a type.

Template Parameters

Name

Description

C

The any's Concept.

T

The any's placeholder.

Registry

A registry.