cpp / latest / thread / latch / ~latch.html /

std::latch::~latch

~latch();
(since C++20)

Destroys the latch.

Notes

The behavior is undefined if any thread is concurrently calling a member function of the latch.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/latch/%7Elatch