beman::optional::optional::emplace

Constructs the value in-place using the given arguments, destroying the current one if there

Synopsis

Declared in <beman/optional/optional.hpp>
template<
    class U,
    class... Args>
constexpr
T&
emplace(
    std::initializer_list<U> il,
    Args...&&... args);

Return Value

T&

Parameters

Name Description
il The initializer list to use in emplacement construction.
args The argument list to use in emplacement construction.

Created with MrDocs