cuda::experimental::stf::with_location#
-
template<class T>
struct with_location# Value (or reference) plus the call-site
source_locationof its construction.Intended as a function parameter type: write
with_location<widget>instead ofwidgetso the callee can report file/line. Construction from an argument capturessource_location::current()at that call site (overloaded operators cannot take defaultedsource_locationparameters themselves).Move-only: may be constructed as a temporary and moved into a by-value parameter, but not copied.
Tmay be a value, lvalue reference, or rvalue reference.Public Functions
-
with_location(const with_location&) = delete#
-
with_location(with_location&&) = default#
-
with_location(const with_location&) = delete#