PrevUpHomeNext

method: shared_device.has_device()


Check if the object of dcpp::shared_device has underlying device.

dcpp::shared_device does not provide operator bool, instead, it provides explicit check method: .has_device().

If the reference counter is zero, it judges no underlying device even the __device is valid.

Calling Sig:

bool result = shared_device.has_device();

See Also

method: shared_device.tuple()

class: dcpp::shared_device

Back

Up

c++

Duckcpp

cppfx.xyz


PrevUpHomeNext