Relative Content

Tag Archive for c++c++11std

Idiomatic ways of using tuples and std::tie

I am primarily a Python developer, but I occasionally use C++. I am trying to implement the modular multiplicative inverse using the extended Euclidean algorithm in C++. In Python, the code for this is concise and idiomatic, using tuple unpacking: