Item 12: Copy all parts of an object(Effective C++)
2010-01-04 22:01
686 查看
Copying functions should be sure to copy all of an object's
data members and all of its base class parts.
Don't try to implement one of the copying functions in terms of
the other. Instead, put common functionality in a third function that both call.
data members and all of its base class parts.
Don't try to implement one of the copying functions in terms of
the other. Instead, put common functionality in a third function that both call.
相关文章推荐
- Effective C++ Item 12 Copy all parts of an object
- Item12: Copy all parts of an object
- [EffectiveC++]item12:copy all parts of an object
- 【条款12】Copy all parts of an object
- Effective C++ 12. Copy all parts of an object
- 条款12:复制对象时勿忘其每一个成分(Copy all parts of an object)
- 条款12:复制对象时勿忘其每一个成分(Copy all parts of an object.)
- effective c++ 条款12 copy all parts of an object
- [翻译] Effective C++, 3rd Edition, Item 12: 拷贝一个 object(对象)的所有 parts(构件)
- find out all attributes of an object
- How do I list all fields of an object in Objective-C?
- C++: Iterating through all of an object's members? C++遍历成员变量
- ToDoList-An effective and flexible way to keep on top of your tasks(ToDoList-管理任务的有效工具)
- 提示Trying to clone an uncloneable object of class Imagic的解决
- WebAdaptor Object reference not set to an instance of an object.
- Item 12:完整地拷贝对象(拷贝构造函数、复制运算符) Effective C++笔记
- Effective Java 英文 第二版 读书笔记 Item 3:Enforce the singleton property with a private constructor or an enum type.
- Potential leak of an object stored into ‘colorS'
- Axis--An implementation of SOAP(Simple Object Access Protocol)
- Effective Java——Item 1: Consider static factory methods instead of constructors