|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
latch::latch | ||||
| Constants | ||||
constexprexplicit 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 ifexpected is negative or greater thanmax().latch is neither copyable nor movable.| expected | - | the initial value of the internal counter |
Throws nothing.