noncopyable.h

来自「经常用到的 socketAPI」· C头文件 代码 · 共 24 行

H
24
字号
//  Boost noncopyable.hpp header file  --------------------------------------//
//  (C) Copyright Boost.org 1999-2003. Permission to copy, use, modify, sell
//  and distribute this software is granted provided this copyright
//  notice appears in all copies. This software is provided "as is" without
//  express or implied warranty, and with no claim as to its suitability for
//  any purpose.
//  See http://www.boost.org/libs/utility for documentation.

#ifndef NONCOPYABLE_H
#define NONCOPYABLE_H
namespace mylib{
class noncopyable
{
 protected:
    noncopyable() {}
    ~noncopyable() {}
 private:  // emphasize the following members are private
    noncopyable( const noncopyable& );
    const noncopyable& operator=( const noncopyable& );
};
}
#endif

⌨️ 快捷键说明

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