Modern C++: How to use tuples
Motivation Python supports the concept of multiple return values since its first version. C++ introduced the concept in C++11. Let’s have a look how it works: How to use it You need to include the header include <tuple> You have to declare return parameter of your function e.g. std::tuple<int, int> You use the function make_tuple:…