noncopyable.h

来自「This library provides a C++ interface to」· C头文件 代码 · 共 38 行

H
38
字号
/* noncopyable.h * libxml++ and this file are * copyright (C) 2000 by The libxml++ Development Team, and * are covered by the GNU Lesser General Public License, which should be * included with libxml++ as the file COPYING. */#ifndef __LIBXMLPP_NONCOPYABLE_H#define __LIBXMLPP_NONCOPYABLE_H#include <libxml++/api_export.h>namespace xmlpp{/** * Herited by classes which cannot be copied. */class LIBXMLPP_API NonCopyable{protected:  NonCopyable();  virtual ~NonCopyable();private:  //These are not-implemented.  //They are just here so we can declare them as private  //so that this, and any derived class, do not have  //copy constructors.  NonCopyable(const NonCopyable&);  NonCopyable& operator=(const NonCopyable&);};} // namespace xmlpp#endif //__LIBXMLPP_NONCOPYABLE_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?