mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Add global methods that prevent us from using ilist::iterators as
random access iterators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ccb2a677af
commit
71be6db3ef
@ -156,6 +156,18 @@ public:
|
|||||||
pointer getNodePtrUnchecked() const { return NodePtr; }
|
pointer getNodePtrUnchecked() const { return NodePtr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// do not implement. this is to catch errors when people try to use
|
||||||
|
// them as random access iterators
|
||||||
|
template<typename T>
|
||||||
|
void operator-(int, ilist_iterator<T>);
|
||||||
|
template<typename T>
|
||||||
|
void operator-(ilist_iterator<T>,int);
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
void operator+(int, ilist_iterator<T>);
|
||||||
|
template<typename T>
|
||||||
|
void operator+(ilist_iterator<T>,int);
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// ilist_compat_iterator<Node> - Compatibility iterator for intrusive list.
|
// ilist_compat_iterator<Node> - Compatibility iterator for intrusive list.
|
||||||
// This makes an ilist<X> act like an std::list<X*>, where you have to
|
// This makes an ilist<X> act like an std::list<X*>, where you have to
|
||||||
|
@ -156,6 +156,18 @@ public:
|
|||||||
pointer getNodePtrUnchecked() const { return NodePtr; }
|
pointer getNodePtrUnchecked() const { return NodePtr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// do not implement. this is to catch errors when people try to use
|
||||||
|
// them as random access iterators
|
||||||
|
template<typename T>
|
||||||
|
void operator-(int, ilist_iterator<T>);
|
||||||
|
template<typename T>
|
||||||
|
void operator-(ilist_iterator<T>,int);
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
void operator+(int, ilist_iterator<T>);
|
||||||
|
template<typename T>
|
||||||
|
void operator+(ilist_iterator<T>,int);
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// ilist_compat_iterator<Node> - Compatibility iterator for intrusive list.
|
// ilist_compat_iterator<Node> - Compatibility iterator for intrusive list.
|
||||||
// This makes an ilist<X> act like an std::list<X*>, where you have to
|
// This makes an ilist<X> act like an std::list<X*>, where you have to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user