Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
Result_test Class Reference

Description

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 64 of file result-test.cpp.

Private Member Functions

void run (Arg)
 

Member Function Documentation

◆ run()

void run ( Arg  )
inlineprivate

Definition at line 69 of file result-test.cpp.

References Literal::empty(), Type, and VERIFY_ERROR.

+ Here is the call graph for this function:
+ Inheritance diagram for Result_test:
+ Collaboration diagram for Result_test:

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