Variadic typedefs, or “Bimaps done the C++0x way”

后端 未结 2 1878
花落未央
花落未央 2021-01-05 04:20

Short question: Can I typedef a variadic argument pack? I need template struct Forward { typedef T... args; };.


Long version

2条回答
  •  一生所求
    2021-01-05 04:59

    You can typedef a tuple. However, I wouldn't know how to then get the types back out again.

    The easiest thing to do would be to just accept two full types.

提交回复
热议问题