Constructs the value in‐place, destroying the current one if there

Synopsis

Declared in <beman/optional/optional.hpp>

template<class... Args>
constexpr
T&
emplace(Args...&&... args);

Description

Constructs the value in‐place, destroying the current one if there is one.

Return Value

T&

Template Parameters

Name

Description

Args

Parameters

Name

Description

args

Created with MrDocs