ipc-cpp/3rdparty/capo/noncopyable.hpp

25 lines
499 B
C++
Raw Permalink Normal View History

2024-11-26 17:41:38 +00:00
/*
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