std::counting_semaphore<LeastMaxValue>::max
提供: cppreference.com
<tbody>
</tbody>
constexpr std::ptrdiff_t max() noexcept; |
(C++20以上) | |
内部カウンタの可能な最大値を返します。 これは LeastMaxValue より大きいまたは等しいです。 特殊化 binary_semaphore の場合、 LeastMaxValue は 1 と等しいです。
戻り値
std::ptrdiff_t としての、内部カウンタの可能な最大値。