I want to write a single line which will be effected on every stl for accessing .
Look bottom this code:
set<int> Set;
stack<int> Stack;
queue<int> Queue;
vector<int> Vector;
Set.insert(1);
Stack.push(2);
Queue.push(3);
Vector.push_back(4);
Now I want to access both stl using single operation instead of part by part
I do not want to use looks like that
for(i=Vector.begin(); i!=Vector.end(); i++)
Aucun commentaire:
Enregistrer un commentaire