SPH
Static Public Member Functions | List of all members
OutcomeTraits< TError > Struct Template Reference

Utility functions used within BasicOutcome. More...

#include <Outcome.h>

Static Public Member Functions

static INLINE TError defaultError ()
 Helper function returning default error message. More...
 
static INLINE TError concatenate (const TError &e1, const TError &e2)
 Concatenated two error messages. More...
 

Detailed Description

template<typename TError>
struct OutcomeTraits< TError >

Utility functions used within BasicOutcome.

Has to be specialized for each error type.

Definition at line 20 of file Outcome.h.

Member Function Documentation

◆ concatenate()

template<typename TError >
static INLINE TError OutcomeTraits< TError >::concatenate ( const TError &  e1,
const TError &  e2 
)
static

Concatenated two error messages.

◆ defaultError()

template<typename TError >
static INLINE TError OutcomeTraits< TError >::defaultError ( )
static

Helper function returning default error message.


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