- why i can’t insert in middle in deque stl. why it is prefered to use list for this operation… 2 . and random access operator gives value at any index in 0(1). then is deque using hashmap or something to work like a vector.
Deque stl doubt
hi @Rajan_42 all your queries related to deque can be answered through the documentation http://www.cplusplus.com/reference/deque/deque/
Let me know if you have trouble understanding anything
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.