ipc-cpp/3rdparty/capo/noncopyable.hpp
2024-11-27 01:41:38 +08:00

25 lines
499 B
C++

/*
The Capo Library
Code covered by the MIT License
Author: mutouyun (http://orzz.org)
*/
#pragma once
namespace capo {
////////////////////////////////////////////////////////////////
class noncopyable
{
protected:
noncopyable(void) = default;
~noncopyable(void) = default;
public:
noncopyable(const noncopyable&) = delete;
noncopyable& operator=(const noncopyable&) = delete;
};
////////////////////////////////////////////////////////////////
} // namespace capo