std::latch::~latch(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

✨ NAME ✨

okay so welcome to the std::latch::~latch(3) page from the C++ Standard Libary manual πŸ’– the name is literally std::latch::~latch β€” yes, also std::latch::~latch. same name, no notes, she’s consistent πŸ’…

🌸 Synopsis 🌸

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

Destroys the latch. that’s it, that’s the whole job πŸŽ€

πŸ’… Notes πŸ’…

🚨 undefined behavior alert: the behavior is undefined if any thread is concurrently calling a member function of the latch.

like bestie, read that again: any thread, concurrently, member function of the latch. don’t do it. periodt 😭


cute little sign-off tea β˜•: this page is from http://cppreference.com, version/date 2024.06.10, and the manual page is std::latch::~latch(3). byeee, stay safe out there 🫢✨

πŸ“¦ where this page comes from