Search⌘ K
AI Features

Modifying the Referenced Objects

Explore how to modify referenced objects using std::span in C++20. Understand the use of subspans to target specific elements within containers, enabling efficient and precise sequence manipulation. This lesson helps you apply std::span to update elements directly, enhancing your control over container data.

We'll cover the following...

You can modify an entire span or only a subspan. When you modify a span, you modify the referenced objects.

The ...