C 的容器类/库 [英] Container Class / Library for C

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

问题描述

有人知道任何 C 容器库吗?我正在寻找能够提供链表、数组、哈希表等标准实现的东西,与 C++ STL 所做的方式非常相似.主要关注点是:

Does anyone know of any C container libraries? I am looking for something which gives standard implementations of linked lists, arrays, hash tables etc, much in the same way as the C++ STL does. Key concerns are:

  1. 客户端代码应该能够为多种不同的数据类型创建容器,而无需修改库.
  2. 创建和使用容器的界面应该是直观的.

推荐答案

我在寻找地图/字典容器的 C 实现时遇到了 SGLIB.不幸的是,没有地图,但它似乎包括您询问的容器.我不知道它有多好.

I just came across SGLIB while looking for a C implementation of a map/dictionary container. Unfortunately, no map but it seems to include the containers you asked about. I have no idea how good it is.

http://sglib.sourceforge.net.

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

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