Move Constructor
Learned in CS247 - Software Engineering Principles.
A move constructor is used for when the object is constructed with an rvalue.
Definition:
Usage:
When would you ever use Move/ Move Assignment Operator?
Move operations are primarily used in situation where you want to efficiently transfer ownership of resources from one object to another without unnecessary copying.
Most of the time, if you are thinking about the move constructor, you are wrong. It’s likely the Copy Constructor or Copy Assignment Operator! I get confused really easily.