Important Notes¶
Move semantics transfer ownership instead of copying; use
std::moveto enable efficient resource reuse.Rvalue references (
T&&) bind to temporaries, enabling move constructors and move assignments.std::unique_ptrprovides exclusive ownership—cannot be copied, only moved.std::shared_ptrenables shared ownership—resource deleted when the last owner is destroyed.std::weak_ptrobserves ashared_ptrwithout extending its lifetime; uselock()to check validity.