25 std::same_as<std::remove_cvref_t<Ty>, libusb_device_handle *> ||
requires(
const Ty dev) {
26 { dev.get() } -> std::same_as<libusb_device_handle *>;
57template <DeviceHandlePo
inter Ty>
auto device_handle_of (Ty &&devh) -> libusb_device_handle *
59 if constexpr (std::same_as<std::remove_cvref_t<Ty>, libusb_device_handle *>)
65 return std::forward<Ty>(devh).get();
80template <DeviceHandleSource Ty>
auto device_handle_of (Ty &&devh_src) -> libusb_device_handle *
82 if constexpr (DeviceHandlePointer<Ty>)
A type which can provide libusb_device_handle *.
Definition device_handle_source.hpp:24
A type which can provide a co_usb::detail::DeviceHandlePointer.
Definition device_handle_source.hpp:42
auto device_handle_of(Ty &&devh) -> libusb_device_handle *
Obtains a libusb_device_handle * from a co_usb::detail::DeviceHandlePointer.
Definition device_handle_source.hpp:57
Definition flag_type.hpp:6