首页 | 本学科首页   官方微博 | 高级检索  
     

基于STL的泛型容器扩展方法
引用本文:陈健,谭骏珊.基于STL的泛型容器扩展方法[J].信息技术,2006,30(6):56-58.
作者姓名:陈健  谭骏珊
作者单位:中南林业科技大学电子与信息工程学院,长沙,410004
摘    要:泛型程序设计是一种通用、可复用组件的设计方法,首先介绍了泛型程序设计及泛型容器,并以设计一个AVL容器树(可以作为底层机制实现关联式容器)为例,阐述如何在STL框架的基础上应用模板技术来扩展与设计新的容器与迭代器,并针对Dev-C++环境(Gcc编译器.STL库基于SGI标准)进行测试与移植。

关 键 词:泛型容器  泛型程序设计
文章编号:1009-2552(2006)06-0056-03
修稿时间:2005年11月4日

Extended Method of generic container based on STL
CHEN Jian,TAN Jun-shan.Extended Method of generic container based on STL[J].Information Technology,2006,30(6):56-58.
Authors:CHEN Jian  TAN Jun-shan
Abstract:Generic programming is a method for designing common and reused components.This paper presents generic programming,generic container,with an example of AVL-tree container(implements an associative container based on it),expatiates how to extend and design the new container and iterator based on the STL framework by using the template,testing and explanting the container based on the DEV-C environment(the compiler is Gcc,STL library basesd on the SGI standard).
Keywords:STL
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号