|
FhSim
3.1.0
Marine systems simulation
|
#include <AtomicSharedPtr.h>
A shared_ptr published by one thread and read by others, as std::atomic<std::shared_ptr<T>>.
This is std::atomic<std::shared_ptr<T>> where the standard library has it (libstdc++, MSVC). Apple's libc++ does not have it yet; there the shared_ptr overloads of std::atomic_load and std::atomic_store do the same, which C++20 deprecates in favour of the specialisation.