std::experi...s_lock_free(3)

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

✨ NAME ✨

okay so this is the std::experi...s_lock_free(3) page from the C++ Standard Libary (yes, that’s how the header spells it, and we’re not fixing it πŸ’…). The function in question, with full main-character energy, is:

  • std::experimental::atomic_weak_ptr::is_lock_free β€” std::experimental::atomic_weak_ptr::is_lock_free

the original lists it twice. redundant? maybe. iconic? absolutely. periodt. πŸ‘‘


πŸ“œ Synopsis πŸ“œ

bool is_lock_free() const noexcept;

the way this checks whether the atomic operations on all objects of this type are lock-free? that’s the whole vibe, bestie. ✨

🌸 Parameters 🌸

  • (none) β€” literally not a single parameter. no cap.

πŸŽ€ Return value πŸŽ€

  • true if the atomic operations on the objects of this type are lock-free, false otherwise.

🌈 See also 🌈

bestie, the cross-references are giving β€œwhole extended friend group,” so here’s everyone:

  • std::atomic_is_lock_free(std::shared_ptr)
  • std::atomic_load(std::shared_ptr)
  • std::atomic_load_explicit(std::shared_ptr)
  • std::atomic_store(std::shared_ptr)
  • std::atomic_store_explicit(std::shared_ptr)
  • std::atomic_exchange(std::shared_ptr)
  • std::atomic_exchange_explicit(std::shared_ptr)
  • std::atomic_compare_exchange_weak(std::shared_ptr)
  • std::atomic_compare_exchange_strong(std::shared_ptr)
  • std::atomic_compare_exchange_weak_explicit(std::shared_ptr)
  • std::atomic_compare_exchange_strong_explicit(std::shared_ptr)

the original literally says specializes atomic operations for std::shared_ptr and tags it (function template) β€” and then hits you with (deprecated in C++20) and (removed in C++26). so yeah, mind the timeline, bestie. πŸ’€


mwah πŸ’‹ source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::experi...s_lock_free(3). that’s the footer, and we ate. 🫢

πŸ“¦ where this page comes from