How to iterate NCollection_List<T> in OpenCASCADE
NCollection_List<T>
supports iteration using the C++11 foreach loop (also called range-based for loop):
NCollection_List<T> myList = /* ... */;
// Iterate myList
for(const T& value : myList) {
/* ... */
}
Remember to compile with at least --std=c++11
or equivalent for your compiler to allow using the range-based for loop.