KnowledgeCity

C++ Move Semantics

This module is about move semantics. You will learn how to use move semantics, when to use it, and whether or not you should use it.  You will also learn how to use move semantics to make code more efficient.
Preview the first lesson free — get full access to all 7 lessons.

To view this video please enable JavaScript.

Course: On-Demand
Advanced  Provider Mikhail Veygman  7 Lessons ·  33m  in Arabic, German, English, Spanish, French, Portuguese, Chinese Simplified 

What You'll Learn

  • Distinguish L values from R values in C++
  • Use std::move to transfer resources between objects
  • Implement a move constructor and a move assignment operator
  • Apply the copy-and-swap idiom for safe assignment
  • Follow the Rule of 3/5/0 when designing classes

Key Takeaways

  • The course introduces move semantics in C++ and explains what it is.
  • It distinguishes between L values and R values as part of understanding move semantics.
  • It covers std::move, the move constructor, and the move assignment operator.
  • It presents the copy-and-swap idiom and the Rule of 3/5/0.

Frequently Asked Questions

What topics does this C++ Move Semantics course cover?

It covers what move semantics is, understanding L values and R values, using std::move, the move constructor, the move assignment operator, the copy-and-swap idiom, and the Rule of 3/5/0.

What skills does this course relate to?

It relates to C++ (Programming Language), C++ Fundamentals, C++ Concepts, C++ Modules, Function Module, and Software Modules.

How is the course structured?

The course is organized into lessons covering move semantics, L values and R values, std::move, the move constructor, the move assignment operator, the copy-and-swap idiom, and the Rule of 3/5/0.