adding erase example

This commit is contained in:
Jidong Xiao
2025-02-11 13:41:02 -05:00
committed by JamesFlare1212
parent b34f9cd0af
commit cd0e681f45

View File

@@ -434,7 +434,8 @@ int main() {
}
// 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) {
std::cout << num << " ";
}