Uncopyable.h revision 533eae20118036f425f27bf0536ef0ccbb090b65
1//===- Uncopyable.h -------------------------------------------------------===// 2// 3// The MCLinker Project 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9#ifndef MCLD_ADT_UNCOPYABLE_H 10#define MCLD_ADT_UNCOPYABLE_H 11 12namespace mcld 13{ 14 15/** \class Uncopyable 16 * \brief Uncopyable provides the base class to forbit copy operations. 17 * 18 */ 19class Uncopyable 20{ 21protected: 22 Uncopyable() { } 23 ~Uncopyable() { } 24 25private: 26 Uncopyable(const Uncopyable&); /// NOT TO IMPLEMENT 27 Uncopyable& operator=(const Uncopyable&); /// NOT TO IMPLEMENT 28}; 29 30} // namespace of mcld 31 32#endif 33 34