Summary: Essential Utilities
A summary of what we discussed in the “Essential Utilities” chapter.
In this chapter, you have learned how to use std::optional
to represent
optional values in your code. You have also seen how to combine std::pair
, std::tuple
, std::any
, and std::variant
with standard containers and metaprogramming to store and iterate over elements of different types. You also learned that std::tie()
is a conceptually simple yet powerful tool that can be used for projection and reflection.
Get hands-on with 1400+ tech skills courses.