11#include <botan/types.h>
30 explicit Atomic(
const std::atomic<T>& data) : m_data(data.load()) {}
39 m_data.store(other.m_data.load());
45 m_data.store(a.load());
49 explicit operator std::atomic<T>&() {
return m_data; }
52 operator T() {
return m_data.load(); }
55 std::atomic<T> m_data;
Atomic(Atomic &&other)=default
Atomic(const std::atomic< T > &data)
Atomic & operator=(Atomic &&other)=default
Atomic & operator=(const std::atomic< T > &a)
Atomic & operator=(const Atomic &other)
Atomic(const Atomic &data)