Say I have a class, something like the following;
class MyClass { public: MyClass(); int a,b,c; double x,y,z; }; #define PageSize 1000000 MyClass Ar
It will work, because a (POD-) class is the same as a struct (not completely, default access ...), in C++. And you may copy a POD struct with memcpy.
The definition of POD was no virtual functions, no constructor, deconstructor no virtual inheritance ... etc.