std::tuple the Hard Way

from blog mcyoung, | ↗ original
↗ original
Let’s talk about C++ templates. C++ is famous for relegating important functionality often built into the language to its standard library1. C++11 added a number of very useful class templates intended to make generic programming easier. By far the most complicated is std::tuple<>, which is literally just a tuple. It turns out that implementing...