How do I strip a tuple<> back into a variadic template list of types?

后端 未结 5 2339
死守一世寂寞
死守一世寂寞 2020-12-15 07:29

Is there a way to strip a std::tuple in order to get it back to T...?

Example

Suppose

5条回答
  •  眼角桃花
    2020-12-15 08:11

    template
    struct strip;
    
    template
    struct strip>
    {
       using type = vct;
    };
    

    then use this as:

    using Y = strip::type;
    

    Now Y is same as X.

提交回复
热议问题