constexpr explicit latch( std::ptrdiff_t expected ); | (1) | (since C++20) |
latch( const latch & ) = delete; | (2) | (since C++20) |
latch and initializes its internal counter. The behavior is undefined if expected is negative or greater than max().latch is neither copyable nor movable.| expected | - | the initial value of the internal counter |
Throws nothing.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/latch/latch