LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::ok_error_t Class Reference

Opaque structure that is used by LIEF to avoid writing result<void> f(...). Instead, it makes the output explicit such as: More...

#include <errors.hpp>

Inheritance diagram for LIEF::ok_error_t:
Collaboration diagram for LIEF::ok_error_t:

Detailed Description

Opaque structure that is used by LIEF to avoid writing result<void> f(...). Instead, it makes the output explicit such as:

ok_error_t process() {
if (fail) {
return make_error_code(...);
}
return ok();
}
Opaque structure that is used by LIEF to avoid writing result<void> f(...). Instead,...
Definition errors.hpp:112
tl::unexpected< lief_errors > make_error_code(lief_errors e)
Create an standard error code from lief_errors.
Definition errors.hpp:52
ok_t ok()
Return success for function with return type ok_error_t.
Definition errors.hpp:96

The documentation for this class was generated from the following file: