absl::Status::Update

Update overloads

Synopses

Declared in <absl/status/status.h>

Updates the existing status with new_status provided that this->ok().

void
Update(Status const& new_status);
» more...

Updates the existing status by moving from new_status if this->ok().

void
Update(Status&& new_status);
» more...

Parameters

NameDescription
new_statusThe status to apply if *this is currently OK.