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 12 namespace mcld 13 { 14 15 /** \class Uncopyable 16 * \brief Uncopyable provides the base class to forbit copy operations. 17 * 18 */ 19 class Uncopyable 20 { 21 protected: Uncopyable()22 Uncopyable() { } ~Uncopyable()23 ~Uncopyable() { } 24 25 private: 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