cuda::experimental::stf::sump::translate_t#
-
template<class ..._Ts>
struct translate_t# Boundary translation.
translate<To>replaces every failure by aTobuilt from it;translate<From, To>does so only for aFrom(catch-clause rules: same or publicly derived) and forwards anything else untouched.Tois astd::exceptionderivative, constructed from the caught exception when such a constructor exists, from itswhat()otherwise, default-constructed failing both. The one-type form claims everything, a non-standard exception included, for whichTois built from the message “non-standard exception” when it takes aconst char*, and default-constructed otherwise. Restrict the source with a selector, as inif_isa<cuda_error>(translate<device_error>). A following|arm sees theTo, sotranslate<low, high> | if_isa<high>(...)ladders compose.