diff options
-rw-r--r-- | include/Support/GraphTraits.h | 7 | ||||
-rw-r--r-- | include/llvm/ADT/GraphTraits.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/Support/GraphTraits.h b/include/Support/GraphTraits.h index 00973d59fa..754e38fa7f 100644 --- a/include/Support/GraphTraits.h +++ b/include/Support/GraphTraits.h @@ -31,6 +31,13 @@ struct GraphTraits { // + // typedef ...iterator nodes_iterator; + // static nodes_iterator nodes_begin(GraphType *G) + // static nodes_iterator nodes_end (GraphType *G) + // + // nodes_iterator/begin/end - Allow iteration over all nodes in the graph + + // If anyone tries to use this class without having an appropriate // specialization, make an error. If you get this error, it's because you // need to include the appropriate specialization of GraphTraits<> for your diff --git a/include/llvm/ADT/GraphTraits.h b/include/llvm/ADT/GraphTraits.h index 00973d59fa..754e38fa7f 100644 --- a/include/llvm/ADT/GraphTraits.h +++ b/include/llvm/ADT/GraphTraits.h @@ -31,6 +31,13 @@ struct GraphTraits { // + // typedef ...iterator nodes_iterator; + // static nodes_iterator nodes_begin(GraphType *G) + // static nodes_iterator nodes_end (GraphType *G) + // + // nodes_iterator/begin/end - Allow iteration over all nodes in the graph + + // If anyone tries to use this class without having an appropriate // specialization, make an error. If you get this error, it's because you // need to include the appropriate specialization of GraphTraits<> for your |