absl::StatusOr::StatusOr

Constructs the inner value T in-place from the given arguments.

Synopsis

Declared in <absl/status/statusor.h>

template<typename... Args>
explicit
StatusOr(
    std::in_place_t tag,
    Args&&... args);

Description

Constructs the inner value T in-place using the provided args, using the T(args...) constructor.

Parameters

NameDescription
argsThe arguments forwarded to the T constructor.
tagA tag that selects this overload.