293 points · by panic · 9y ago · 24 comments
Their data structure is considerably more complex than traditional implementations of std::deque, I wonder if it is actually of any practical interest.
* Random access - constant O(1)
* Insertion or removal of elements at the end or beginning - constant O(1)
* Insertion or removal of elements - linear O(n)
Also in glibc/libstdc++ it is one
https://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a015...The small fixed size of the sub-arrays in std::deque is basically a defect making the container a lot less useful.