adding erase example
This commit is contained in:
committed by
JamesFlare1212
parent
b34f9cd0af
commit
cd0e681f45
@@ -434,7 +434,8 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// print the modified list
|
// print the modified list
|
||||||
// range based for loop: all STL containers that provide begin() and end() member functions support range-based for loops (introduced in C++11).
|
// range based for loop.
|
||||||
|
// all STL containers that provide begin() and end() member functions support range-based for loops (introduced in C++11).
|
||||||
for (int num : numbers) {
|
for (int num : numbers) {
|
||||||
std::cout << num << " ";
|
std::cout << num << " ";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user