boost::openmethod::virtual_any::virtual_any

Constructors

Synopses

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

Construct an empty virtual_any.

Copy constructor.

virtual_any(virtual_any const& other) = default;

Move constructor.

Construct from an any (copy).

virtual_any(Any const& other);

Construct from an any (move).

virtual_any(Any&& other);

Construct from a value.

template<typename T>
requires !BOOST_OPENMETHOD_DETAIL_UNLESS_MRDOCS
                IsVirtualAny<std::decay_t<T>> &&
            !std::is_same_v<std::decay_t<T>, Any> &&
            std::is_constructible_v<Any, T&&>
virtual_any(T&& value);

Template Parameters

Name

Description

T

The type of the value.

Parameters

Name

Description

other

A virtual_any.

value

The value to store.

Created with MrDocs