std::experi...latch::latch(3)

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

πŸ’… NAME πŸ’…

okay bestie, so this is the page for std::experimental::latch::latch β€” yes, that whole glorious name πŸ’– β€” and it lives in the C++ Standard Libary manual, section (3). (and yes, the page really spells it β€œLibary”, iykyk 🫢) the header up top is literally std::experi...latch::latch(3), so now you know exactly where you are ✨


🌸 Synopsis 🌸

explicit latch( ptrdiff_t value ); (1) (concurrency TS)
latch( const latch & ) = delete;   (2) (concurrency TS)
  1. Constructs a latch and initializes its internal counter. πŸŽ€
  2. Copy constructor is deleted. latch is not copyable. periodt πŸ’…

πŸ¦‹ Parameters πŸ¦‹

  • value β€” the initial value of the internal counter; must be non-negative ⭐

ngl, the non-negative thing is not a vibe suggestion, bestie β€” it's a requirement πŸ’€

mwah πŸ’– this adorable little page came from http://cppreference.com and is dated 2024.06.10 β€” that's the source/version and date, bestie, don't forget 'em βœ¨πŸ’…

πŸ“¦ where this page comes from