A good C equivalent of STL vector?

后端 未结 7 1900
悲&欢浪女
悲&欢浪女 2021-02-02 12:54

I\'ve noticed that at several places in our code base we use dynamically expanding arrays, i.e. a base array coupled with an element counter and a \"max elements\" value.

相关标签:
7条回答
  • 2021-02-02 13:34

    There is sglib, which implements various lists,hashmaps and rbtrees in a generic fashion (i.e. by specializing over a type). There is also a fast sorting function for arrays:

    • http://sglib.sourceforge.net/
    0 讨论(0)
提交回复
热议问题