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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -