std::experimental::atomic_shared_ptr<T>::atomic_shared_ptr

From cppreference.com
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
 
 
 
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.

1) The default constructor initializes the object to an empty state.
2) Initializes the underlying shared_ptr<T> with desired. The initialization is not atomic.
3) Atomic variables are not CopyConstructible.

Parameters

desired - value to initialize with

Exceptions