co_usb
Loading...
Searching...
No Matches
co_usb::detail::DeviceHandlePointer Concept Reference

A type which can provide libusb_device_handle *. More...

#include <device_handle_source.hpp>

Concept definition

template<typename Ty>
std::same_as<std::remove_cvref_t<Ty>, libusb_device_handle *> || requires(const Ty dev) {
{ dev.get() } -> std::same_as<libusb_device_handle *>;
}
A type which can provide libusb_device_handle *.
Definition device_handle_source.hpp:24

Detailed Description

A type which can provide libusb_device_handle *.

Template Parameters
TyType satisfying the DeviceHandlePointer contract.

A single object which may be queried to obtain a libusb_device_handle *. Must either be a libusb_device_handle * itself or provide .get() -> libusb_device_handle * method.