summaryrefslogtreecommitdiff
path: root/examples/APG/Containers/KeyType.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/APG/Containers/KeyType.h')
-rw-r--r--examples/APG/Containers/KeyType.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/APG/Containers/KeyType.h b/examples/APG/Containers/KeyType.h
deleted file mode 100644
index 268b56c1684..00000000000
--- a/examples/APG/Containers/KeyType.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#ifndef __KEYTYPE_H_
-#define __KEYTYPE_H_
-
-// Listing 1 code/ch05
-class KeyType
-{
-public:
- friend bool operator == (const KeyType&, const KeyType&);
-
- KeyType () : val_(0) {}
- KeyType (int i) : val_(i) {}
- KeyType (const KeyType& kt) { this->val_ = kt.val_; };
- operator int() const { return val_; };
-
-private:
- int val_;
-};
-
-bool operator == (const KeyType& a, const KeyType& b)
-{
- return (a.val_ == b.val_);
-}
-// Listing 1
-
-#endif /* __KEYTYPE_H_ */