mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-06 05:37:04 +08:00
add const begin/end iterators to SurfaceCollection to let it work in range-based for loops (const)
This commit is contained in:
parent
f18c34006c
commit
748dd3c23a
@ -78,6 +78,8 @@ class SurfaceCollection
|
||||
Surfaces::iterator end() { return this->surfaces.end();}
|
||||
Surfaces::const_iterator cbegin() const { return this->surfaces.cbegin();}
|
||||
Surfaces::const_iterator cend() const { return this->surfaces.cend();}
|
||||
Surfaces::const_iterator begin() const { return this->surfaces.cbegin();}
|
||||
Surfaces::const_iterator end() const { return this->surfaces.cend();}
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user