Add default index functor (an identity functor). You could use a
[oota-llvm.git] / include / llvm / ADT / GraphTraits.h
index e54d9631294c6ef173faeb72814975d672d1928a..4ff74176a7a5877679170c334d529c24f09cb264 100644 (file)
@@ -1,4 +1,11 @@
 //===-- Support/GraphTraits.h - Graph traits template -----------*- C++ -*-===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 // This file defines the little GraphTraits<X> template class that should be 
 // specialized by classes that want to be iteratable by generic graph iterators.
@@ -11,6 +18,8 @@
 #ifndef SUPPORT_GRAPHTRAITS_H
 #define SUPPORT_GRAPHTRAITS_H
 
+namespace llvm {
+
 // GraphTraits - This class should be specialized by different graph types...
 // which is why the default version is empty.
 //
@@ -69,4 +78,6 @@ struct Inverse {
   inline Inverse(GraphType &G) : Graph(G) {}
 };
 
+} // End llvm namespace
+
 #endif