等价的C C ++ STL的 [英] C equivalent of C++ STL

查看:215
本文介绍了等价的C C ++ STL的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  用C 标准数据结构库?

请问c具有类似C ++ STL的任何数据结构的实现?具体关联容器,哈希映射或任何其他结构近似恒定时间恢复?

Does C have any data structure implementations similar to the C++ STL? Specifically associative containers, hash maps or any other structure with approximately constant time retrieval?

谢谢!

推荐答案

C 不能的STL有一个完全等效,因为C没有模板或类。

C can't have an "exact equivalent" of STL because C doesn't have templates or classes.

您可能会感兴趣的油嘴集合库:

You might be interested in the "Glib collections" library:


  • <一个href=\"http://www.ibm.com/developerworks/linux/tutorials/l-glib/\">http://www.ibm.com/developerworks/linux/tutorials/l-glib/

侏儒油嘴: http://developer.gnome.org/glib/stable/

GNU Gnulib: http://www.gnu.org/software/gnulib/

GNU Gnulib: http://www.gnu.org/software/gnulib/

这篇关于等价的C C ++ STL的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆