#includeIn the above example, we have created a vector `myVec` with integers from 1 to 5. We are using `std::vector::begin()` to get an iterator pointing to the first element of the vector, and `std::vector::end()` to get an iterator pointing to the past-the-end element of the vector. Then, we are using a for loop to print all the elements of the vector using the iterators. This is an example of the C++ Standard Library. Note that `std::vector::end()` returns an iterator pointing to the past-the-end element, not to the last element of the vector. To access the last element, use `std::vector::back()` or decrement the iterator returned by `std::vector::end()`.#include int main() { std::vector myVec = {1, 2, 3, 4, 5}; // Using end() to print all elements of the vector for (auto it = myVec.begin(); it != myVec.end(); it++) { std::cout << *it << " "; } return 0; }