Zhanibekkk's blog

By Zhanibekkk, history, 6 years ago, In English

Are there any drawbacks in usage of deque instead of vector

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it +2 Vote: I do not like it

Are there any drawbacks not asking google ?

»
6 years ago, # |
  Vote: I like it +4 Vote: I do not like it

They are similar to vectors, but are more efficient in case of insertion and deletion of elements. Unlike vectors, contiguous storage allocation may not be guaranteed.

Learn more about it from this :D.

»
6 years ago, # |
Rev. 2   Vote: I like it +24 Vote: I do not like it

There is vectorman, but there isn't a user named dequeman, so therefore vectors are better. Of course, arrayman is the most op of them all, so arrays are the best.