Holds an error (std::exception_ptr) or a "stopped"/cancellation state.
Synopsis
Declared in <folly/result/result.h>
class [[nodiscard]] error_or_stopped;
Member Functions
Name |
Description |
|
Constructors |
Assigns the "stopped"/cancellation state. |
|
Implementation of |
|
Implements the |
|
|
Extracts the stored error as a legacy |
Implements the mutable |
|
Tests whether this holds the "stopped"/cancellation state. |
|
Moves out the internal |
|
|
Rethrows the stored error. AVOID: throwing costs upwards of 1usec. |
AVOID. Use |
Static Member Functions
Name |
Description |
AVOID. Most code should use |
|
AVOID. Use |
|
|
Wraps a legacy |
Friends
Name |
Description |
Compares two |
|
A value, an error ( |
Non-Member Functions
Name |
Description |
epitaph |
|
Syntax sugar for |
|
stack_epitaph |
Return Value
|
Note
|
The return value should not be discarded. |
Created with MrDocs