memberwise and bitwise in C++

来源:互联网 发布:如何确保数据准确性 编辑:程序博客网 时间:2024/05/16 11:17

Default Memberwist Initialization: During initialize an object, base class's constructor(s) is(are) called, data members' are called, this constructor is called. Of course, this is a recursive procedure.

Bitwise copy semantics: raw memory copy. For example, given object a of Class A occupies 10 bytes memory from address 0x0 to 0x9, b = a will copy data from 0x0 to 0x9 to b's memory space if Bitwise copy semantics applies.

原创粉丝点击