Search
 
SCRIPT & CODE EXAMPLE
 

CPP

number of cores c++

#include <thread>

//may return 0 when not able to detect
const auto processor_count = std::thread::hardware_concurrency();
Comment

PREVIOUS NEXT
Code Example
::  
::  
::  
::  
::  
Cpp ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
3+3 =