boost::openmethod::virtual_ptr<Class, boost::openmethod::default_registry> :: Boost.OpenMethod

# boost::openmethod::virtual_ptr<Class, boost::openmethod::default_registry>

Construct a `virtual_ptr` from a lvalue reference.

## Synopsis

Declared in `<boost/openmethod/core.hpp>`

    template<class Class>
    virtual_ptr<Class, boost::openmethod::default_registry>(Class& obj) → virtual_ptr<Class, boost::openmethod::default_registry>;

## Return Value

A `virtual_ptr<Class>`.

## Template Parameters

Name | Description
--- | ---
Class | A class type, possibly cv‐qualified.

## Parameters

Name | Description
--- | ---
obj | A lvalue reference to an object.

Created with MrDocs