|
SPH
|
Return value of function that may fail, containing either SUCCEES (true) or error message. More...
#include "objects/wrappers/Optional.h"Go to the source code of this file.
Classes | |
| struct | SuccessTag |
| struct | FailTag |
| struct | OutcomeTraits< TError > |
| Utility functions used within BasicOutcome. More... | |
| struct | OutcomeTraits< std::string > |
| class | BasicOutcome< TError > |
| Expected-like class that does not contain any value. More... | |
Namespaces | |
| Detail | |
Typedefs | |
| using | Outcome = BasicOutcome< std::string > |
| Alias for string error message. More... | |
Functions | |
| INLINE void | Detail::printArgs (std::stringstream &) |
| template<typename T0 , typename... TArgs> | |
| INLINE void | Detail::printArgs (std::stringstream &ss, T0 &&t0, TArgs &&... args) |
| template<typename... TArgs> | |
| INLINE Outcome | makeFailed (TArgs &&... args) |
| Constructs failed object with error message. More... | |
| template<typename... TArgs> | |
| INLINE Outcome | makeOutcome (const bool condition, TArgs &&... args) |
| Constructs outcome object given the condition. More... | |
Variables | |
| const SuccessTag | SUCCESS |
| Global constant for successful outcome. More... | |
Return value of function that may fail, containing either SUCCEES (true) or error message.
Definition in file Outcome.h.
| using Outcome = BasicOutcome<std::string> |
| const SuccessTag SUCCESS |