cuda::experimental::stf::sump::notify_t#
-
struct notify_t#
A suppressing handler policy that reports an error and resumes (
std::ignore).notify ->* callablereports onstderr. A configured copy reports elsewhere:notify(file)writes to aFILE*,notify(stream)to astd::ostream. An object rather than a function because it is an overload set, which must travel as one value.The report carries the location and the exception’s message, or “nonstandard exception” for an exception that does not derive from
std::exception(which reaches a handler asnullptr). On the code channel it carriesstatus_traits<S>::name(status)and no exception is built. Both hooks returnstd::ignore, marking a resuming policy.Public Functions
-
inline notify_t operator()(::FILE *__file) const#
Returns a copy configured to report on
__fileinstead ofstderr.
-
inline notify_t operator()(::std::ostream &__os) const#
Returns a copy configured to report on
__osinstead ofstderr.
-
template<class _Fn>
inline void on_thrown( - const ::std::exception *__exception,
- const ::cuda::std::source_location __loc,
- _Fn&
Reports the exception and resumes.
Writes to the configured
std::ostreamif any, else__file_(defaultstderr). The ostream write is best-effort: a stream configured to throw does not get to end the program from inside a handler.
-
template<class _Status, class _Fn>
inline void on_returned(
) const noexcept# The code-channel hook: reports
status_traits<_Status>::name(__status); the status is handled and left unchanged.A name that cannot be formatted (its allocation failed) is reported as such.
-
inline notify_t operator()(::FILE *__file) const#