mrdocs::Optional<T&>::emplace

Bind to a new referenced value.

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

template<class U>
requires ok_bind_v<U>
constexpr
value_type&
emplace(U&& u) noexcept(std::is_nothrow_constructible_v<T &, U>);

Return Value

Reference to the bound value.

Parameters

Name

Description

u

Referenceable value to bind.

Created with MrDocs