C++20 sections · 1024 units
Open in Course

Section Recap

What we learned

You now group values with pairs and tuples.

1.1. pair holds exactly two values of any types

2.2. tuple holds any number of values

3.3. Structured bindings unpack values cleanly

4.4. Use pairs as map keys or return multiple values

Good job. You can now bundle related values. Next, you will learn STL algorithms to replace common loops.