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

A type which can provide a co_usb::detail::DeviceHandlePointer. More...

#include <device_handle_source.hpp>

Concept definition

template<typename Ty>
concept co_usb::detail::DeviceHandleSource = DeviceHandlePointer<Ty> || requires(const Ty src) {
{ src.devh() } -> DeviceHandlePointer;
}
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

Detailed Description

A type which can provide a co_usb::detail::DeviceHandlePointer.

Template Parameters
TyType satisfying the DeviceHandleSource contract.

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