C++17’s Structured Bindings
C++17 provides a really cool feature that allows us to unpack / decompose structures into their constituent values. This combines some syntactic sugar and automatic type deductaion to create structured bindings. The below code provides some example use cases: This produces the following output (when built with –std=c++17):