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

STL和迭代器模式
引用本文:李卫明,陈大金.STL和迭代器模式[J].杭州电子科技大学学报,2004,24(3):35-38.
作者姓名:李卫明  陈大金
作者单位:杭州电子科技大学软件学院,浙江,杭州,310018
摘    要:C 融合了泛型程序设计、面向对象程序设计和设计模式思想,提出了STL标准模板库。文章探讨了STL内在机制,指出迭代器是STL算法和容器的粘合剂,是STL的核心。在STL迭代器概念模型基础上,利用特性萃取机制和编译时代码分派技术,泛型算法达到了最佳运行效率。使STL成为一个具有开放架构的、强大、高效的泛型程序库。

关 键 词:STL  迭代器  泛型编程  标准模板库  C++
文章编号:1001-9146(2004)03-0035-04
修稿时间:2002年4月6日

STL and Iterator Design Pattern
LI Wei-ming,CHEN Da-jin.STL and Iterator Design Pattern[J].Journal of Hangzhou Dianzi University,2004,24(3):35-38.
Authors:LI Wei-ming  CHEN Da-jin
Abstract:Combined generic programming, object oriented programming and design pattern theories, C++ brings standard template library(STL). This article probes the mechanism involved in the STL, points out iterator, the glue of STL algorithms and containers, is kernel of STL. Based on iterator concepts model, traits extraction mechanism and compile time dispatch technic, STL generic algorithms achieve best efficiency. So, STL becomes a open frame, high performance and powerful generic library.
Keywords:STL  generic programming  iterator  container  algorithm  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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