Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
noncopyable.h
이 파일의 문서화 페이지로 가기
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 // ======================================================================
noncopyable & operator=(noncopyable const &)