cuda::experimental::stf::notify#

inline decltype(::std::ignore) cuda::experimental::stf::notify(
const ::std::exception *__exception,
const ::cuda::std::source_location __loc
) noexcept#

A suppressing handler that reports an exception on stderr and flushes it.

Use it as in on_throw(notify) << callable to report an exception and carry on. Reporting to a destination other than stderr is a matter of writing another handler, which this function doubles as the model for.

Parameters:
  • __exception[in] The caught exception, or nullptr if it does not derive from std::exception, in which case the report carries no message.

  • __loc[in] The location to report.

Returns:

std::ignore, which marks this handler as suppressing.