Added ForEach to RegionPagerBase and RegionPager's API
This commit is contained in:
@@ -101,6 +101,10 @@ void RegionPagerBase::UnloadAll() {
|
||||
regionList.clear();
|
||||
}
|
||||
|
||||
void RegionPagerBase::ForEach(std::function<void(Region&)> fn) {
|
||||
std::for_each(regionList.begin(), regionList.end(), fn);
|
||||
}
|
||||
|
||||
std::list<Region>* RegionPagerBase::GetContainer() {
|
||||
return ®ionList;
|
||||
}
|
||||
Reference in New Issue
Block a user