cuda::experimental::stf::notify#
- inline decltype(::std::ignore) cuda::experimental::stf::notify(
- const ::std::exception *__exception,
- const ::cuda::std::source_location __loc
A suppressing handler that reports an exception on
stderrand flushes it.Use it as in
on_throw(notify) << callableto report an exception and carry on. Reporting to a destination other thanstderris a matter of writing another handler, which this function doubles as the model for.- Parameters:
__exception – [in] The caught exception, or
nullptrif it does not derive fromstd::exception, in which case the report carries no message.__loc – [in] The location to report.
- Returns:
std::ignore, which marks this handler as suppressing.