std::condit...ion_variable(3)
π 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)
- Constructs an object of type
std::condition_variable. That's it, that's the whole job, and she ate β¨ - 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 π¦
- May throw
std::system_errorwithstd::error_conditionequal 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms