Macros
- Constrained template macros
- Version macros
-
BOOST_OUTCOME_DISABLE_EXECINFO
If defined, disables the use of the
<execinfo.h>
header (or the win32 emulation). -
BOOST_OUTCOME_NODISCARD
How to tell the compiler than the return value of a function should not be discarded without examining it.
-
BOOST_OUTCOME_REQUIRES(...)
A C++ 20
requires(...)
, if available. -
BOOST_OUTCOME_SYMBOL_VISIBLE
How to mark throwable types as always having default ELF symbol visibility.
-
BOOST_OUTCOME_THREAD_LOCAL
How to mark variables as having thread local storage duration.
-
BOOST_OUTCOME_THROW_EXCEPTION(expr)
How to throw a C++ exception, or equivalent thereof.
-
BOOST_OUTCOME_TRY(var, expr)
Evaluate an expression which results in a type matching the
ValueOrError<T, E>
concept, assigningT
to a variable calledvar
if successful, immediately returningtry_operation_return_as(expr)
from the calling function if unsuccessful. -
BOOST_OUTCOME_TRYV(expr)/BOOST_OUTCOME_TRY(expr)
Evaluate an expression which results in a type matching the
ValueOrError<void, E>
concept, continuing execution if successful, immediately returningtry_operation_return_as(expr)
from the calling function if unsuccessful. -
BOOST_OUTCOME_TRYX(expr)
Evaluate an expression which results in a type matching the
ValueOrError<T, E>
concept, emitting theT
if successful, immediately returningtry_operation_return_as(expr)
from the calling function if unsuccessful. -
BOOST_OUTCOME_USE_STD_IN_PLACE_TYPE
How to implement
in_place_type_t<T>
andin_place_type<T>
. -
BOOST_OUTCOME_USE_STD_IS_NOTHROW_SWAPPABLE
How to implement
is_nothrow_swappable<T>
.