std::experi...c_shared_ptr(3)
π NAME π
okay so this is the std::experi...c_shared_ptr(3) page from the C++ Standard Libary manual β yes, βLibaryβ with one r, thatβs literally how itβs spelled in the source, no cap π β and itβs all about:
std::experimental::atomic_shared_ptr::atomic_shared_ptr β which is also std::experimental::atomic_shared_ptr::atomic_shared_ptr, bestie. The constructor. The main character. β¨
π Synopsis π
constexpr atomic_shared_ptr() noexcept; (1)
constexpr atomic_shared_ptr( shared_ptr<T> desired ) noexcept; (2)
atomic_shared_ptr( const atomic_shared_ptr& ) = delete; (3)
Constructs a new atomic_shared_ptr object. Periodt. π«Ά
Hereβs the breakdown, because we love a numbered list:
- The default constructor initializes the object to an empty state. Cute, clean, empty. π
- Initializes the underlying
shared_ptr<T>withdesired. The initialization is not atomic β so donβt get it twisted, bestie. π - Atomic variables are not
CopyConstructible. Thatβs the rule. π
πΈ Parameters πΈ
desiredβ value to initialize with π
π¦ Exceptions π¦
Nothing is listed here in the original, bestie. The whole section is just the heading β no exception details were given. π
made with love from http://cppreference.com Β· 2024.06.10 Β· bye bestie, go construct something iconic π§π
π¦ 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