mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Include support for reverse iteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84608e43b2
commit
586bd03dc1
@ -56,14 +56,22 @@ public:
|
||||
// sub-Definition iterator code
|
||||
//===--------------------------------------------------------------------===//
|
||||
//
|
||||
typedef vector<ValueSubclass*>::iterator iterator;
|
||||
typedef vector<ValueSubclass*>::const_iterator const_iterator;
|
||||
typedef vector<ValueSubclass*>::iterator iterator;
|
||||
typedef vector<ValueSubclass*>::const_iterator const_iterator;
|
||||
typedef reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
typedef reverse_iterator<iterator> reverse_iterator;
|
||||
|
||||
|
||||
inline iterator begin() { return ValueList.begin(); }
|
||||
inline const_iterator begin() const { return ValueList.begin(); }
|
||||
inline iterator end() { return ValueList.end(); }
|
||||
inline const_iterator end() const { return ValueList.end(); }
|
||||
|
||||
inline reverse_iterator rbegin() { return ValueList.rbegin(); }
|
||||
inline const_reverse_iterator rbegin() const { return ValueList.rbegin(); }
|
||||
inline reverse_iterator rend() { return ValueList.rend(); }
|
||||
inline const_reverse_iterator rend() const { return ValueList.rend(); }
|
||||
|
||||
void delete_all() { // Delete all removes and deletes all elements
|
||||
while (!empty()) {
|
||||
iterator it = end();
|
||||
|
Loading…
Reference in New Issue
Block a user