__atomic2::atomic_bool(3)
π NAME π
__atomic2::atomic_bool β literally just atomic_bool, bestie. That's the whole name. Short, iconic, to the point. β¨
Oh and real quick, the manual name is Library Functions Manual β so you know this is the library-functions girlies' territory, not some random section 1 command situation. π
πΈ SYNOPSIS πΈ
β¨ Public Member Functions β¨
okay so here's the whole squad of public member functions, and yes you need every single one of them, no skipping π
atomic_bool (bool __i)β the constructor that takes abool __iand starts your atomic off with it π«Άatomic_bool (const atomic_bool &)β the copy constructor, for when you need a twin πbool compare_exchange_strong (bool &__i1, bool __i2, memory_order __m=memory_order_seq_cst) volatileβ the strong version, with__mdefaulting tomemory_order_seq_cst, and yeah it'svolatile, we don't make the rules π₯bool compare_exchange_strong (bool &__i1, bool __i2, memory_order __m1, memory_order __m2) volatileβ strong version again but with two memory orders,__m1and__m2, for the overachievers πbool compare_exchange_weak (bool &__i1, bool __i2, memory_order __m=memory_order_seq_cst) volatileβ the weak one,__mstill chillin' atmemory_order_seq_cstby default πbool compare_exchange_weak (bool &__i1, bool __i2, memory_order __m1, memory_order __m2) volatileβ weak + two memory orders (__m1,__m2). she contains multitudes βbool exchange (bool __i, memory_order __m=memory_order_seq_cst) volatileβ swaps in__i,__mdefaults tomemory_order_seq_cst, stillvolatilebestie πbool is_lock_free () const volatileβ asks the question we all ask ourselves: is it lock free?const volatile, naturally π¦bool load (memory_order __m=memory_order_seq_cst) const volatileβ reads the value,__mdefaults tomemory_order_seq_cst, and yes:const volatileπoperator bool () const volatileβ the conversion operator, so your atomic can just be a bool when the moment calls for it. main character energy π§bool operator= (bool __i)β assignment from a plainbool __iπatomic_bool & operator= (const atomic_bool &)β assignment from anotheratomic_bool, returns a reference to theatomic_boolbecause chaining is slay β¨void store (bool __i, memory_order __m=memory_order_seq_cst) volatileβ writes__iin there,__mdefaults tomemory_order_seq_cst,volatileas always π
π Detailed Description π
It does atomic_bool. That's it. That's the description. ngl sometimes the vibes speak for themselves π
Definition at line 388 of file atomic_2.h. β write it down, this is the receipts, don't come for me if you forget π₯
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So likeβ¦ nobody wrote this with their hands, the machine did it, and honestly? it ate π
and that's the whole page bestie!! π«Ά this beauty is from libstdc++, dated 21 Apr 2009 β vintage, lowkey iconic, periodt. ππ
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms