mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1174583: P1. Add iterators to IntervalSet. r=mattwoodrow
Make for more elegant loops.
This commit is contained in:
parent
4f89d96033
commit
27b85119f2
@ -609,6 +609,27 @@ public:
|
||||
return NoIndex;
|
||||
}
|
||||
|
||||
// Methods for range-based for loops.
|
||||
typename ContainerType::iterator begin()
|
||||
{
|
||||
return mIntervals.begin();
|
||||
}
|
||||
|
||||
typename ContainerType::const_iterator begin() const
|
||||
{
|
||||
return mIntervals.begin();
|
||||
}
|
||||
|
||||
typename ContainerType::iterator end()
|
||||
{
|
||||
return mIntervals.end();
|
||||
}
|
||||
|
||||
typename ContainerType::const_iterator end() const
|
||||
{
|
||||
return mIntervals.end();
|
||||
}
|
||||
|
||||
protected:
|
||||
ContainerType mIntervals;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user