absl::IsOutOfRange

Returns true if status has the kOutOfRange error code.

Synopsis

Declared in <absl/status/status.h>

[[nodiscard]]
bool
IsOutOfRange(Status const& status);

Return Value

true if status matches the associated error code.

NOTE

The return value should not be discarded.

Parameters

NameDescription
statusThe status to test.