Template Classes to Manage Collections o - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
If you are going to create a project in ATL or some other type, then MFC is often included.   The reason for this is often for a few collection classes and CString.   There will be some overhead in an ATL project if MFC is included and the collection classes is not that hard to rewrite.
I created some templates that I use and it is working fine for me.   The classes are designed to be fast and use very little memory.   They store pointers to classes and not objects except one.   If constructors, copy constructors, assignment and other things are added then the collection class becomes slower.
如果你想创建ATL或其它类型的项目,则经常使用MFC。因为它提供了一些集体类和 CString。如果使用MFC,会造成一个ATL项目的额外开销,集合类的重写是不难的。
我创建了我使用的一些模板,它们运行得很好。这些类的速度快,使用了很少的内存。它们保存类的指针,不保存对象。如果增加了构造函数,拷贝构造函数,赋值和其它功能,这样集合类的速度会变慢。
来源: http://www.codeguru.com/cpp_mfc/templ_coll.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
templ_coll |
 1.0  |
2004-04-15 |
下载 |
|
|