tryEmplace overloads

Synopses

Declared in <folly/Try.h>

Overload of tryEmplace() for Try<void>.

void
tryEmplace(Try<void>& t) noexcept;

Try to in‐place construct a new value from the specified arguments.

template<
    typename T,
    typename... Args>
T*
tryEmplace(
    Try<T>& t,
    Args&&... args) noexcept;

Return Value

A pointer to the newly constructed value, or nullptr on failure.

Parameters

Name

Description

t

The Try<void> to construct the value into.

args

The arguments passed to T's constructor.

Created with MrDocs