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();