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

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

问题描述

有谁知道任何C容器库?我在找东西给链表,数组,哈希表等,在很多的C ++ STL做同样的方式标准实现。关键问题是:


  1. 客户端code应该能够在不修改库创建多个不同的数据类型的容器。

  2. 用于创建和使用的容器应直观的接口。


解决方案

我只是碰到SGLIB出来,同时寻找一个C实现一个地图/字典的容器。不幸的是,没有地图,但它似乎包括你问的容器。我不知道它有多好。

http://sglib.sourceforge.net。

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. Client code should be able to create containers for multiple different data types without modifying the library.
  2. The interface for creating and using the containers should be intuitive.

解决方案

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天全站免登陆