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 contained value from the rhs.

Parameters

Name Description
rhs The object to copy construct from