- Test:
- Verify an intermediary »Either« type, to embody either a successful result, or document a failure with encountered exception.
- when given a value, the Result captures it and is in »left« state
- various value types can be picked up by perfect forwarding
- when given an exception, the result is in »right« state
- option-style
or-else
usage
- can invoke arbitrary callable and capture result or exception caught
- invocation also works with void functors, and likewise captures failure
- See also
- result.hpp
-
lib::ThreadJoinable usage example
Definition at line 73 of file result-test.cpp.
The documentation for this class was generated from the following file: