by wfunction · 9y ago · 0 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...[1] http://en.cppreference.com/w/cpp/container/deque
[2] https://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a015...
[3] https://github.com/llvm-mirror/libcxx/blob/master/include/de...