How is std::tuple implemented?

前端 未结 4 514
臣服心动
臣服心动 2021-01-31 16:03

I\'d like to know how are tuple implemented in standard library for C++0x. I tried to read description in libstdc++ manual and then read template listing, but it\'s really hard

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 17:04

    Implementing std::tuple is possible via variadic templates, that were introduced into the core language.

    I know this is begging the question but it gives you a better search phrase to research.

提交回复
热议问题