I
Isliguezze
I need to use one of two std::queue objects and to change current if
needed. How do I perform this in c++? I used this code:
std::queue<std:air<int, int> > q, w;
std::queue<std:air<int, int> > *p;
if (/*smth*/) p = q;
else p = w;
//...
p->push(smth), etc...
needed. How do I perform this in c++? I used this code:
std::queue<std:air<int, int> > q, w;
std::queue<std:air<int, int> > *p;
if (/*smth*/) p = q;
else p = w;
//...
p->push(smth), etc...