Funciones STL que reciven iteradores
#include <algorithm>
auto [minIt, maxIt] = minmax_element(vec.begin(), vec.end());
if (minIt != vec.end() && maxIt != vec.end()) {
cout << "El valor mínimo es " << *minIt << endl;
cout << "El valor máximo es " << *maxIt << endl;
}
vec.insert(vec.begin(), value);
vector<int> subVec(vec.begin() + 1, vec.end() - 1);
vector<int> copyVec(subVec.size());
copy(subVec.begin(), subVec.end(), copyVec.begin());
vector<int> vec1 = {1, 2, 3};
vector<int> vec2 = {4, 5, 6};
swap(vec1, vec2);
reverse(vec.begin(), vec.end());