std::latch::~latch
From cppreference.com
| ~latch(); |
(since C++20) | |
Destroys the latch.
Notes
In the Concurrency TS, the behavior is undefined if the destructor is called when there is any thread blocked on the latch. The requirement is removed in C++20.