folly::atomic_shared_ptr::load

Atomically loads the stored shared_ptr.

Synopsis

Declared in <folly/concurrency/AtomicSharedPtr.h>

std::shared_ptr<T>
load(std::memory_order order = std::memory_order_seq_cst) const noexcept;

Return Value

The current shared_ptr value.

Parameters

NameDescription
orderThe memory order for the load.