c++ - How can I construct or return the underlying deque from a stack? -
I want to convert to a std :: stack & lt;> a std :: deque & lt;> Is there a direct conversion?
You will need to do this manually:
while (! Stk.empty ()) {deq.push_back (stk.top ()); Stk.pop (); }
Comments
Post a Comment