beman::optional::optional<T&>::optional

Copy constructor.

Synopsis

Declared in <beman/optional/optional.hpp>
constexpr
optional(optional const& rhs) noexcept = default;


Description

Constructs an empty optional if the rhs is empty, otherwise constructs the stored value from the rhs.

Parameters

Name Description
rhs The object to copy construct from

Created with MrDocs