Home
The original Doxygen documentation is also available here
Platforms
Wrapper that contains an Object (T
) or an error.
The tl/expected implementation exposes the method value()
to access the underlying object (if no error)
Typical usage is:
result<int> intval = my_function();
if (intval) {
int val = intval.value();
} else { // There is an error
std::cout << get_error(intval).message() << "\n";
}
See https://tl.tartanllama.xyz/en/latest/api/expected.html for more details
Return the lief_errors when the provided result<T>
is an error.
LIEF error codes definition.
Values:
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 used by ok_error_t.
See also the section Error Handling
Iterator which returns reference on container’s values.
Public Types
Public Functions
Iterator which return const ref on container’s values.
Iterator which return a ref on container’s values given predicates.
Public Types
Public Functions
Globally disable the logging module.
Globally enable the logging module.
Change the logging level (hierarchical)
Change the logger as a file-base logging and set its path.
Hierarchical logging level
From a given level set, all levels below this ! level are enabled
For example, if LOG_INFO is enabled then LOG_WARN, LOG_ERR are also enabled
Values: