llvm.org GIT mirror llvm / 7d8fab9
Remove unused file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8021 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 0 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
+0
-26
include/Support/NonCopyable.h less more
None //===-- NonCopyable.h - Disable copy ctor and op= in subclasses --*- C++ -*--=//
1 //
2 // This file defines the NonCopyable and NonCopyableV classes. These mixin
3 // classes may be used to mark a class not being copyable. You should derive
4 // from NonCopyable if you don't want to have a virtual dtor, or NonCopyableV
5 // if you do want polymorphic behavior in your class.
6 //
7 // No library is required when using these functinons.
8 //
9 //===----------------------------------------------------------------------===//
10
11 #ifndef SUPPORT_NONCOPYABLE_H
12 #define SUPPORT_NONCOPYABLE_H
13
14 class NonCopyable {
15 // Disable the copy constructor and the assignment operator
16 // by making them both private:
17 //
18 NonCopyable(const NonCopyable &); // DO NOT IMPLEMENT
19 NonCopyable &operator=(const NonCopyable &); // DO NOT IMPLEMENT
20 protected:
21 inline NonCopyable() {}
22 inline ~NonCopyable() {}
23 };
24
25 #endif