[llvm-commits] [llvm] r53432 - /llvm/trunk/include/llvm/ADT/alist.h
Ted Kremenek
kremenek at apple.com
Thu Jul 10 16:09:45 PDT 2008
Author: kremenek
Date: Thu Jul 10 18:09:45 2008
New Revision: 53432
URL: http://llvm.org/viewvc/llvm-project?rev=53432&view=rev
Log:
Make some typedefs public to make MSVC++ happy.
Modified:
llvm/trunk/include/llvm/ADT/alist.h
Modified: llvm/trunk/include/llvm/ADT/alist.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/alist.h?rev=53432&r1=53431&r2=53432&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/alist.h (original)
+++ llvm/trunk/include/llvm/ADT/alist.h Thu Jul 10 18:09:45 2008
@@ -24,9 +24,11 @@
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 @@
///
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 @@
///
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:
More information about the llvm-commits
mailing list