|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constexprstd::ptrdiff_t max()noexcept; | (since C++20) | |
Returns the internal counter's maximum possible value, which is greater than or equal toLeastMaxValue.
The internal counter's maximum possible value, as astd::ptrdiff_t.
For specializationbinary_semaphore,LeastMaxValue is equal to1.
As its name indicates, theLeastMaxValue is theminimum max value, not theactual max value. Thusmax() can yield a number larger thanLeastMaxValue.