Macros
- Constrained template macros
- Version macros
-
OUTCOME_CO_TRY(var, expr)
Evaluate within a coroutine an expression which results in an understood type, assigning
T
to a decl calledvar
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_CO_TRYV(expr)/OUTCOME_CO_TRY(expr)
Evaluate from within a coroutine an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_CO_TRYV2(spec, expr)
Evaluate an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_CO_TRYV2_FAILURE_LIKELY(spec, expr)
Evaluate an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_CO_TRYV_FAILURE_LIKELY(expr)/OUTCOME_CO_TRY_FAILURE_LIKELY(expr)
Evaluate from within a coroutine an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_CO_TRYX(expr)
Evaluate from within a coroutine an expression which results in an understood type, emitting the
T
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_CO_TRYX_FAILURE_LIKELY(expr)
Evaluate from within a coroutine an expression which results in an understood type, emitting the
T
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_CO_TRY_FAILURE_LIKELY(var, expr)
Evaluate within a coroutine an expression which results in an understood type, assigning
T
to a decl calledvar
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_DISABLE_EXECINFO
If defined, disables the use of the
<execinfo.h>
header (or the win32 emulation). -
OUTCOME_ENABLE_LEGACY_SUPPORT_FOR
Enables backwards features and naming compatibility for earlier versions of Outcome.
-
OUTCOME_NODISCARD
How to tell the compiler than the return value of a function should not be discarded without examining it.
-
OUTCOME_REQUIRES(...)
A C++ 20
requires(...)
, if available. -
OUTCOME_SYMBOL_VISIBLE
How to mark throwable types as always having default ELF symbol visibility.
-
OUTCOME_THREAD_LOCAL
How to mark variables as having thread local storage duration.
-
OUTCOME_THROW_EXCEPTION(expr)
How to throw a C++ exception, or equivalent thereof.
-
OUTCOME_TRY(var, expr)
Evaluate an expression which results in an understood type, assigning
T
to a decl calledvar
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_TRYV(expr)/OUTCOME_TRY(expr)
Evaluate an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_TRYV2(spec, expr)
Evaluate an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_TRYV2_FAILURE_LIKELY(spec, expr)
Evaluate an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_TRYV_FAILURE_LIKELY(expr)/OUTCOME_TRY_FAILURE_LIKELY(expr)
Evaluate an expression which results in an understood type, continuing execution if successful, immediately returning
try_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_TRYX(expr)
Evaluate an expression which results in an understood type, emitting the
T
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_TRYX_FAILURE_LIKELY(expr)
Evaluate an expression which results in an understood type, emitting the
T
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_TRY_FAILURE_LIKELY(var, expr)
Evaluate an expression which results in an understood type, assigning
T
to a decl calledvar
if successful, immediately returningtry_operation_return_as(X)
from the calling function if unsuccessful. -
OUTCOME_USE_STD_IN_PLACE_TYPE
How to implement
in_place_type_t<T>
andin_place_type<T>
. -
OUTCOME_USE_STD_IS_NOTHROW_SWAPPABLE
How to implement
is_nothrow_swappable<T>
.