Copying and Copy Constructors in C++
Patreon ► https://patreon.com/thecherno
Twitter ► https://twitter.com/thecherno
Instagram ► https://instagram.com/thecherno
Discord ► https://thecherno.com/discord
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.
Series Playlist ► https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
Thank you to the following Patreon supporters:
- Samuel Egger
- Dominic Pace
Gear I use:
-----------------
BEST laptop for programming! ► http://geni.us/pakTES
My FAVOURITE keyboard for programming! ► http://geni.us/zNhB
FAVOURITE monitors for programming! ► http://geni.us/Ig6KBq
MAIN Camera ► http://geni.us/t6xyDRO
MAIN Lens ► http://geni.us/xGoDWT
Second Camera ► http://geni.us/CYUQ
Microphone ► http://geni.us/wqO6g7K
Видео Copying and Copy Constructors in C++ канала The Cherno
Twitter ► https://twitter.com/thecherno
Instagram ► https://instagram.com/thecherno
Discord ► https://thecherno.com/discord
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.
Series Playlist ► https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
Thank you to the following Patreon supporters:
- Samuel Egger
- Dominic Pace
Gear I use:
-----------------
BEST laptop for programming! ► http://geni.us/pakTES
My FAVOURITE keyboard for programming! ► http://geni.us/zNhB
FAVOURITE monitors for programming! ► http://geni.us/Ig6KBq
MAIN Camera ► http://geni.us/t6xyDRO
MAIN Lens ► http://geni.us/xGoDWT
Second Camera ► http://geni.us/CYUQ
Microphone ► http://geni.us/wqO6g7K
Видео Copying and Copy Constructors in C++ канала The Cherno
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
OPERATORS and OPERATOR OVERLOADING in C++SMART POINTERS in C++ (std::unique_ptr, std::shared_ptr, std::weak_ptr)Copy Constructor in C++ | C++ Tutorial | Mr. KishoreRule of Three in C++: Overloaded Assignment, Copy Constructor, Destructorlvalues and rvalues in C++Stack vs Heap Memory in C++Member Initializer Lists in C++ (Constructor Initializer List)Precompiled Headers in C++How to Deal with Multiple Return Values in C++CONST in C++Why Prefer Initialization to Assignment in C++ ConstructorsCopy Constructor in C++ (HINDI/URDU)Move Semantics in C++Optimizing the usage of std::vector in C++Shallow and Deep Copy in C++SINGLETONS in C++Templates in C++The Arrow Operator in C++How to CREATE/INSTANTIATE OBJECTS in C++