Tutorial
-
result<>
Gentle introduction to writing code with simple success-or-failure return types.
-
outcome<>
Success-or-failure return types where failure can take two forms, expected/handled failure and unexpected/abort failure.
-
No-value policies
Describes the concept of NoValuePolicy and how to use no-value policies.
-
Custom payloads
Success-or-failure return types where extra information in addition to the error code accompanies failure.
-
Result returning constructors
How to metaprogram construction of objects which use result<T, EC> to return failure instead of throwing a C++ exception.
-
Hooking events
Intercepting useful events such as initial construction, copies and moves so you can capture backtraces, fire debug breakpoints etc.
-
Using result<T> from C code
Interacting with result<T, EC> returning C++ functions from C code.
-
Interoperation
Interoperating with std::expected<T, E> and other ValueOrError concept matching types.
- Incommensurate E types
- ValueOrError Concept
- The HTTP library
- The HTMLTidy library
- The File I/O library
- The Application
- Mapping the HTTP library into the Application 1/2
- Mapping the HTTP library into the Application 2/2
- Mapping the File I/O library into the Application
- Mapping the HTMLTidy library into the Application
- In use
- Conclusion



