Copying and Copy Constructors in C

برنامه نویسی علمی
برنامه نویسی علمی
79 بار بازدید - 5 سال پیش - In this video we're talking
In this video we're talking about copying in C++. Copying objects (and data) is commonly necessary in C++, and to properly facilitate that for our custom types, we need to add something called a copy constructor, which performs a deep copy of our object, if one is necessary. Something called a "(copy) assignment operator" is also sometimes necessary, but we'll talk about that in another video. Copying is not free however, and can slow down your program, so try and avoid it if possible.
5 سال پیش در تاریخ 1398/04/03 منتشر شده است.
79 بـار بازدید شده
... بیشتر