#include <thread>
//may return 0 when not able to detect
const auto processor_count = std::thread::hardware_concurrency();
Code Example |
---|
:: |
:: |
:: |
:: |
:: |
Cpp :: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |