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

动态对象数组的两种 C+ +实现及其性能分析
引用本文:刘俸维,张建中.动态对象数组的两种 C+ +实现及其性能分析[J].成都信息工程学院学报,2004,19(2):139-145.
作者姓名:刘俸维  张建中
作者单位:电子科技大学计算机科学与工程学院,四川,成都,610071
摘    要:动态数组在 C 程序设计中有广泛的应用,许多实现包括V C 6.0中附带的vector(向量)都只是动态内建类型数组的实现.由有显式构造/析构函数的对象元素(通常含有指针成员数据)构成的动态对象数组的高效实现则不是很容易,在深入分析C/ C 内存操作的基础上,给出了在 VC 6.0下动态对象数组的两种实现,并就构造/析构函数被调用的总次数等参数做了性能分析.

关 键 词:动态对象数组  C    内存操作  placement  new  动态对象  动态数组  性能分析  performance  analysis  array  object  参数  内存操作  高效实现  构成  成员数据  对象元素  析构函数  构造  类型  向量  vector  应用  程序设计
文章编号:1671-1742(2004)02-0139-07
修稿时间:2003年7月17日

Two implementations of dynamic object array and their performance analysis
LIU Feng wei,ZHANG Jian zhong.Two implementations of dynamic object array and their performance analysis[J].Journal of Chengdu University of Information Technology,2004,19(2):139-145.
Authors:LIU Feng wei  ZHANG Jian zhong
Abstract:On the basis of deep analysis of the memory operations in C/ C++ , two implementations of dynamic object array under VC++ 6 0 and the performance analysis of some parameters such as the total times of calling constructor/destructor are made.
Keywords:dynamic object array  C++  memory operation
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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