diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-10 23:09:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-10 23:09:45 +0000 |
commit | 3000357ab58707faaa8ecb885c1ae09eb211e7c1 (patch) | |
tree | ac91067efd356cf85850aba92682a26a3013cf4e | |
parent | ccaa6540fc2866ab36f6ebecf6df101f613f8aa7 (diff) |
Make some typedefs public to make MSVC++ happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53432 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/alist.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/ADT/alist.h b/include/llvm/ADT/alist.h index 46fa120554..f4b8cf9a1d 100644 --- a/include/llvm/ADT/alist.h +++ b/include/llvm/ADT/alist.h @@ -24,9 +24,11 @@ namespace llvm { template<class T, class LargestT = T, class ValueT = T, class NodeIterT = ilist_iterator<alist_node<T, LargestT> > > class alist_iterator : public bidirectional_iterator<ValueT, ptrdiff_t> { +public: typedef bidirectional_iterator<ValueT, ptrdiff_t> super; typedef alist_node<T, LargestT> NodeTy; +private: /// NodeIter - The underlying iplist iterator that is being wrapped. NodeIterT NodeIter; @@ -144,9 +146,9 @@ struct simplify_type<const alist_iterator<V, W, X, Y> > { /// template<class T, class LargestT = T> class alist_traits { +public: typedef alist_iterator<T, LargestT> iterator; -public: void addNodeToList(T *) {} void removeNodeFromList(T *) {} void transferNodesFromList(alist_traits &, iterator, iterator) {} @@ -159,9 +161,8 @@ public: /// template<class T, class LargestT = T> class alist { - typedef alist_node<T, LargestT> NodeTy; - public: + typedef alist_node<T, LargestT> NodeTy; typedef typename ilist<NodeTy>::size_type size_type; private: |