Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::atomic_weak_ptr

      From cppreference.com
      <cpp‎ |experimental
       
       
       
       
       
      Merged into ISO C++ The functionality described on this page was merged into the mainline ISO C++ standard as of 11/2017; seestd::atomic<weak_ptr<T>>(since C++20)
      Defined in header<experimental/atomic>
      template<class T>
      class atomic_weak_ptr;
      (concurrency TS)

      The class templateatomic_weak_ptr provides thread-safe atomic pointer operations over astd::weak_ptr.

      [edit]Member functions

      constructs anatomic_weak_ptr object
      (public member function)[edit]
      stores a value into anatomic_weak_ptr object
      (public member function)[edit]
      checks if theatomic_weak_ptr object is lock-free
      (public member function)[edit]
      atomically replaces the value of the atomic object with a non-atomic argument
      (public member function)[edit]
      atomically obtains the value of the atomic object
      (public member function)[edit]
      loads a value from an atomic object
      (public member function)[edit]
      atomically replaces the value of the atomic object and obtains the value held previously
      (public member function)[edit]
      atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/atomic_weak_ptr&oldid=151590"

      [8]ページ先頭

      ©2009-2025 Movatter.jp