It seems to be a hardcoded template with 10 things, but there is also an implementation for a cons template class very similar to Typelist from Lokki. So is the boost tuple template just a wrapper around a Typelist/cons implementation? Or what is the gist of it?
Share
In C++03 (because otherwise we would be talking about
std::tuple) there is no variadic template feature, therefore it is emulated with a sufficient number of parameters (*) with a specific default.You can get a hint of the actual implementation reading the Design decisions rationale:
(*) Usually in Boost the code is generated with the use of macros so that the upper limit is configurable.