version 0.1.3
[fms.git] / include / pthreadwrapper / noncopyable.h
diff --git a/include/pthreadwrapper/noncopyable.h b/include/pthreadwrapper/noncopyable.h
new file mode 100644 (file)
index 0000000..e6ebb8a
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef _pthread_noncopyable_\r
+#define _pthread_noncopyable_\r
+\r
+namespace PThread\r
+{\r
+\r
+class NonCopyable\r
+{\r
+protected:\r
+       NonCopyable()   {}\r
+       ~NonCopyable()  {}\r
+\r
+private:\r
+       // restrict copy and assignment\r
+       NonCopyable(const NonCopyable &rhs);\r
+       const NonCopyable &operator=(const NonCopyable &rhs);\r
+};\r
+       \r
+}      // namespace\r
+\r
+#endif // _pthread_noncopyable_\r