Pre-allocate space for C++ STL queue

前端 未结 6 2240
小鲜肉
小鲜肉 2020-12-24 01:50

I\'m writing a radix sort algorithm using queues and I would like to have a STL queue allocate space before I start adding things to the queue so that I can avoid constant d

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-24 02:28

    see if this helps: http://www.cs.sunysb.edu/~skiena/392/programs/queue.c

提交回复
热议问题