The way deque works, there is no difference in performance or invalidation behaviour between pre-allocating and allocating when needed. Thus, it is not possible to explicitly pre-allocate.
The way deque works, there is no difference in performance or invalidation behaviour between pre-allocating and allocating when needed. Thus, it is not possible to explicitly pre-allocate.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law