template <_PW_STATUS_CODE auto kOkCode>
class StatusOf
Defined at line 130 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_base.h
Status type wrapping an existing status code enum.
`StatusOf` is default constructible (OK) and explicitly constructible from
the enum. Enumerators are accessed through the enum type or the `Code` alias
(e.g. `MyStatus::Code::kFailed`).
Users typically create a type alias of `StatusOf` for their status code enum
(e.g. `using MyStatus = pw::StatusOf
<MyCode
::kOk>;`).
Template Parameters
kOkCode Enumerator that represents success (`ok() == true`).
Public Methods
void StatusOf<kOkCode> ()
Defined at line 137 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_base.h
void StatusOf<kOkCode> (Code code)
Defined at line 139 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_base.h