Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
noncopyable.h
Go to the documentation of this file.
1 #ifndef CLHEP_NONCOPYABLE_H
2 #define CLHEP_NONCOPYABLE_H
3 
4 // ======================================================================
5 //
6 // noncopyable - classes directly/indirectly inheriting won't be copyable
7 //
8 // Author: W. E. Brown; 2010-03-05
9 //
10 // ======================================================================
11 
12 
13 #include "CLHEP/Utility/defs.h"
14 
15 
16 namespace CLHEP {
17 
19 {
20 protected:
21  noncopyable () throw () { }
22  ~noncopyable() throw () { }
23 
24 private:
25  noncopyable ( noncopyable const & ); // = delete;
26  noncopyable & operator = ( noncopyable const & ); // = delete;
27 }; // noncopyable
28 
29 } // namespace CLHEP
30 
31 #endif // HEP_NONCOPYABLE_H
32 //
33 // ======================================================================