Skip to main content

GetDeviceList​

原型​

std::vector<IdName> GetDeviceList();

功能​

获取设备Id的列表

参数​

无

返回值​

包含设备Id和Name的列表

示例​

auto devices = mpl::GetDeviceList();

for(auto& device : devices) {
std::cout << "device : " << device.id << " " << device.name << "\n";
}