What is the difference between templated value: 1 and value passed into the constructor value :2 in case of std::counting_semaphore

Viewed 41

What is the difference between template value: 1 and value passed into the constructor value :2 in case of counting_Semaphore. I have gone through cppreference document but confused.so could anyone explain what the difference between two

eg. std::counting_semaphore<1> prepareSignal(2);

0 Answers
Related