地图模板类 [英] map template class

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

问题描述




i想看看STL Associative Container,地图。


但我在谷歌找不到。也许我用这个词来搜索。


在这里停下来,求助。


实际上,我必须创建关联数组模板class similiary to map< string,int>容器。


这就是我想看一下地图模板类代码的原因。

有人能给我看吗?


提前感谢。

Nicky Eng。

解决方案

看看

http://pages.cpsc.ucalgary.ca/~kremer/STL/1024x768/index.html

http://www.josuttis.com/libbook/idx.html

感谢您的链接。


但我仍然无法找到如何创建模板类的地图容器,类似于这个模板< class Key ,T类>没有使用任何STL设施。



感谢您的链接。


但我仍然可以找不到如何创建模板类,如地图容器,类似于这个模板< class Key,class T>不使用任何STL设施。



一个例子看一下CMapEx类

http://www.codeproject.com/cpp/extcol.asp


Hi,

i want to take a look at STL Associative Container, map.

but i can''t find in google. Maybe i use the term to search.

stop by here, and ask for help.

actually, i have to create associative array template class similiary to map<string, int> container.

That''s why i wanna take a look at the map template class code.

can anyone show me?

thanks in advance.
Nicky Eng.

解决方案

have a look at
http://pages.cpsc.ucalgary.ca/~kremer/STL/1024x768/index.html
http://www.josuttis.com/libbook/idx.html


thanks for the links.

but i still can''t find out how to create template class like map container, something like this template<class Key, class T> without using any STL facilities.


thanks for the links.

but i still can''t find out how to create template class like map container, something like this template<class Key, class T> without using any STL facilities.

for an example have a look at the CMapEx class
http://www.codeproject.com/cpp/extcol.asp


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

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