Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

libs/filesystem/src/atomic_ref.hpp

//  atomic.hpp  ------------------------------------------------------------------------//

//  Copyright 2021 Andrey Semashev

//  Distributed under the Boost Software License, Version 1.0.
//  See http://www.boost.org/LICENSE_1_0.txt

//  See library home page at http://www.boost.org/libs/filesystem

//--------------------------------------------------------------------------------------//

#ifndef BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_
#define BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_

#include <boost/filesystem/config.hpp>

#if !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF)

#include <atomic>

namespace atomic_ns = std;

#else // !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF)

#include <boost/memory_order.hpp>
#include <boost/atomic/atomic_ref.hpp>

namespace atomic_ns = boost;

#endif // !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF)

#endif // BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_