Policy

  1. auto basic_outcome_failure_exception_from_error(const EC &)

    ADL discovered free function synthesising an exception type from an error type, used by the .failure() observers.

  2. decltype(auto) error_code(T &&)

    Extracts a boost::system::error_code or std::error_code from the input via ADL discovery of a suitable make_error_code(T) function.

  3. decltype(auto) exception_ptr(T &&)

    Extracts a boost::exception_ptr or std::exception_ptr from the input via ADL discovery of a suitable make_exception_ptr(T) function.

  4. void outcome_throw_as_system_error_with_payload(BoostErrorCodeEnum &&)

    Specialisation of outcome_throw_as_system_error_with_payload() for input types where boost::system::is_error_code_enum<BoostErrorCodeEnum> or boost::system::is_error_condition_enum<BoostErrorCodeEnum> is true.

  5. void outcome_throw_as_system_error_with_payload(ErrorCodeEnum &&)

    Specialisation of outcome_throw_as_system_error_with_payload() for input types where std::is_error_code_enum<ErrorCodeEnum> or std::is_error_condition_enum<ErrorCodeEnum> is true.

  6. void outcome_throw_as_system_error_with_payload(const boost::system::error_code &)

    Specialisation of outcome_throw_as_system_error_with_payload() for boost::system::error_code.

  7. void outcome_throw_as_system_error_with_payload(const std::error_code &)

    Specialisation of outcome_throw_as_system_error_with_payload() for std::error_code.