Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit c6a8213e9b.
Prev Up HomeNext

Macros

  1. Constrained template macros
  2. Version macros
  3. BOOST_OUTCOME_CO_TRY(var, expr)

    Evaluate within a coroutine an expression which results in an understood type, assigning T to a decl called var if successful, immediately returning try_operation_return_as(X) from the calling function if unsuccessful.

  4. BOOST_OUTCOME_CO_TRYV(expr)/BOOST_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.

  5. BOOST_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.

  6. BOOST_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.

  7. BOOST_OUTCOME_CO_TRYV_FAILURE_LIKELY(expr)/BOOST_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.

  8. BOOST_OUTCOME_CO_TRYX(expr)

    Evaluate from within a coroutine an expression which results in an understood type, emitting the T if successful, immediately returning try_operation_return_as(X) from the calling function if unsuccessful.

  9. BOOST_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 returning try_operation_return_as(X) from the calling function if unsuccessful.

  10. BOOST_OUTCOME_CO_TRY_FAILURE_LIKELY(var, expr)

    Evaluate within a coroutine an expression which results in an understood type, assigning T to a decl called var if successful, immediately returning try_operation_return_as(X) from the calling function if unsuccessful.

  11. BOOST_OUTCOME_DISABLE_EXECINFO

    If defined, disables the use of the <execinfo.h> header (or the win32 emulation).

  12. BOOST_OUTCOME_ENABLE_LEGACY_SUPPORT_FOR

    Enables backwards features and naming compatibility for earlier versions of Outcome.

  13. BOOST_OUTCOME_NODISCARD

    How to tell the compiler than the return value of a function should not be discarded without examining it.

  14. BOOST_OUTCOME_REQUIRES(...)

    A C++ 20 requires(...), if available.

  15. BOOST_OUTCOME_SYMBOL_VISIBLE

    How to mark throwable types as always having default ELF symbol visibility.

  16. BOOST_OUTCOME_THREAD_LOCAL

    How to mark variables as having thread local storage duration.

  17. BOOST_OUTCOME_THROW_EXCEPTION(expr)

    How to throw a C++ exception, or equivalent thereof.

  18. BOOST_OUTCOME_TRY(var, expr)

    Evaluate an expression which results in an understood type, assigning T to a decl called var if successful, immediately returning try_operation_return_as(X) from the calling function if unsuccessful.

  19. BOOST_OUTCOME_TRYV(expr)/BOOST_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.

  20. BOOST_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.

  21. BOOST_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.

  22. BOOST_OUTCOME_TRYV_FAILURE_LIKELY(expr)/BOOST_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.

  23. BOOST_OUTCOME_TRYX(expr)

    Evaluate an expression which results in an understood type, emitting the T if successful, immediately returning try_operation_return_as(X) from the calling function if unsuccessful.

  24. BOOST_OUTCOME_TRYX_FAILURE_LIKELY(expr)

    Evaluate an expression which results in an understood type, emitting the T if successful, immediately returning try_operation_return_as(X) from the calling function if unsuccessful.

  25. BOOST_OUTCOME_TRY_FAILURE_LIKELY(var, expr)

    Evaluate an expression which results in an understood type, assigning T to a decl called var if successful, immediately returning try_operation_return_as(X) from the calling function if unsuccessful.

  26. BOOST_OUTCOME_USE_STD_IN_PLACE_TYPE

    How to implement in_place_type_t<T> and in_place_type<T>.

  27. BOOST_OUTCOME_USE_STD_IS_NOTHROW_SWAPPABLE

    How to implement is_nothrow_swappable<T>.

Last revised: December 10, 2018 at 20:32:00 UTC


Prev Up HomeNext