On this page
std::latch::latch
|
(1) | (since C++20) |
|
(2) | (since C++20) |
1) Constructs a
latch
and initializes its internal counter. The behavior is undefined if expected
is negative or greater than max()
.
2) Copy constructor is deleted.
latch
is neither copyable nor movable.
Parameters
expected | - | the initial value of the internal counter |
Exceptions
Throws nothing.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/latch/latch