#ifndef seafire__server__counter_hxx_ #define seafire__server__counter_hxx_ #include #include namespace seafire::server { template class atomic_t : public std::atomic { public: atomic_t() : std::atomic{0} {} atomic_t(atomic_t const& other) : std::atomic{other.load()} {} atomic_t(atomic_t&& other) : std::atomic{other.load()} {} }; using counter_t = atomic_t; } // namespace seafire::server #endif