absl::StatusOr::StatusOr

Constructs the inner value T in-place from an initializer list and args.

Synopsis

Declared in <absl/status/statusor.h>

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

Parameters

NameDescription
ilistThe initializer list forwarded to the T constructor.
argsThe additional arguments forwarded to the T constructor.
tagA tag that selects this overload.