std::experi...s_lock_free(3)

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

πŸ’– NAME πŸ’–

std::experimental::atomic_shared_ptr::is_lock_free β€” std::experimental::atomic_shared_ptr::is_lock_free πŸ’…

okay so bestie, welcome to std::experimental::atomic_shared_ptr::is_lock_free(3) from the C++ Standard Libary manual ✨ yes, it really says the name twice, and no, we are not gonna argue with the manpage 🫢


✨ Synopsis ✨

bool is_lock_free() const noexcept;

This one checks whether the atomic operations on all objects of this type are lock-free. That’s the whole vibe check. πŸ¦‹


πŸŽ€ Parameters πŸŽ€

(none) β€” not a single argument, she takes zero notes and zero input πŸ’…


🌸 Return value 🌸

true if the atomic operations on the objects of this type are lock-free, false otherwise. Simple queen behavior: true or false, no in-between ✨


πŸ¦‹ See also πŸ¦‹

The squad of related atomic std::shared_ptr stuff:

  • 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)

Also in the mix: (function template) specializes atomic operations for std::shared_ptr. And the page carries these exact tags: (deprecated in C++20) and (removed in C++26). iykyk, keep that in your notes app bestie πŸŽ€

Heads up: those (deprecated in C++20) and (removed in C++26) notes are sitting right there in the See also zone β€” do not pretend you didn’t see them πŸ‘€

cute little sign-off: this page comes from http://cppreference.com, dated 2024.06.10, and the footer also shows std::experi...s_lock_free(3) πŸ’œ slay, go be lock-free-aware ✨

πŸ“¦ where this page comes from