Hi, How copy elements of a container for the other container without a loop, because i have that change this code:
vector<int> vetor;
vetor.push_back(2);
vetor.push_back(4);
vetor.push_back(6);
vetor.push_back(9);
deque<int> fila;
while (!vetor.empty()){
fila.push_front(vetor.back());
vetor.pop_back();
}
//I want put the elements of the vector in the deque without this loop. Help me!
Sorry for my english!