#pragma once
#include <folly/Traits.h>
-#include <folly/detail/AtomicUtils.h>
+#include <folly/synchronization/detail/AtomicUtils.h>
#include <stdint.h>
#include <string.h>
#include <atomic>
namespace detail {
template <int N> struct AtomicStructIntPick {};
-}
+} // namespace detail
/// AtomicStruct<T> work like C++ atomics, but can be used on any POD
/// type <= 8 bytes.
template <
typename T,
- template<typename> class Atom = std::atomic,
+ template <typename> class Atom = std::atomic,
typename Raw = typename detail::AtomicStructIntPick<sizeof(T)>::type>
class AtomicStruct {
static_assert(alignof(T) <= alignof(Raw),