member function
std::counting_semaphore::try_acquire
- Header
<semaphore>- Draft
- [sema.cnt]
- Scope
std::counting_semaphore- cppreference
- std::counting_semaphore::try_acquire
Synopsis
[[nodiscard]] bool try_acquire() noexcept;member function
<semaphore>std::counting_semaphore[[nodiscard]] bool try_acquire() noexcept;