beman::optional::optional::optional

Move constructs the value from rhs if it has one.

Synopsis

Declared in <beman/optional/optional.hpp>
constexpr
optional(optional&& rhs) noexcept(std::is_nothrow_move_constructible_v<T>)
requires std::is_move_constructible_v<T> && (!std::is_trivially_move_constructible_v<T>);


Parameters

Name Description
rhs The object to move construct from

Created with MrDocs