std::condit...ion_variable(3)

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

πŸ’– NAME πŸ’–

std::condition_variable::condition_variable β€” std::condition_variable::condition_variable

okay so bestie, this is the constructor page for std::condition_variable, straight out of the C++ Standard Libary (yes that's literally how the header spells it, I'm not fixing it, I'm respecting it πŸ’…). And yes, the description is just the name again β€” she's her own description, main character energy fr fr πŸ‘‘.


✨ Synopsis ✨

condition_variable();                                     (1) (since C++11)
condition_variable( const condition_variable& ) = delete; (2) (since C++11)
  1. Constructs an object of type std::condition_variable. That's it, that's the whole job, and she ate ✨
  2. The copy constructor is deleted. Not me deleting the copy constructor 😭 no copies, no dupe, periodt.

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero parameters, she takes nothing, iconic behavior honestly 🫢


πŸ¦‹ Exceptions πŸ¦‹

  1. May throw std::system_error with std::error_condition equal to:
    • std::errc::operation_not_permitted β€” if the thread has no privilege to create a condition variable πŸ™ˆ
    • std::errc::resource_unavailable_try_again β€” if a non-memory resource limitation prevents this initialization πŸ’€
    • or another implementation-defined value β€” yeah there can be more, iykyk πŸ‘€
Heads up bestie: this is the "may throw" girlie, so don't go assuming it's always chill. Wrap accordingly πŸ’–

🌈 See also 🌈

  • C documentation for cnd_init β€” the C cousin, go say hi 🫢

that's the whole page, no cap 🧚 from http://cppreference.com, dated 2024.06.10, filed under std::condit...ion_variable(3) β€” mwah, go construct something cute πŸ’…πŸ’–

πŸ“¦ where this page comes from