cuda::experimental::stf::sump::noop_t#

struct noop_t#

The identity element of &: a policy with no capabilities at all.

noop & p and p & noop both behave as p; on its own, noop does nothing and the operation goes on. Its use is also to head a chain so that every binary application contains a policy this header defines, as in noop & effect1 & effect2, since a chain of plain lambdas is not itself composable.

Public Functions

template<class _Fn>
inline void on_thrown(
const ::std::exception*,
const ::cuda::std::source_location,
_Fn&
) const noexcept#

The exception hook: do nothing, decide nothing (Nothing).

As the whole policy the expression takes its default value.

template<class _Status, class _Fn>
inline detail::__status_answer<_Status> on_returned(
const _Status __status,
const ::cuda::std::source_location,
_Fn&
) const noexcept#

The code-channel hook: “keep”.

The status is handled and yielded unchanged, so a | stops here: if_equal(cudaErrorNotReady)(noop) | unwind yields the not-ready code.