Header Reference: <latch>
Header Reference: <latch>
One-shot coordination point facilities from <latch>.
Header Reference: <latch>
One-shot coordination point facilities from <latch>.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<latch>std::latchUse <latch> when a fixed number of participating operations must all arrive before one-time continuation can proceed.
std::latch is one-shot. Use std::barrier when repeated phase synchronization is required.#include <latch>
int main() {
// Use this header when you need explicit coordination between tasks.
return 0;
}