How to know if a type is a specialization of std::vector?

后端 未结 3 1163
借酒劲吻你
借酒劲吻你 2020-11-30 07:44

I\'ve been on this problem all morning with no result whatsoever. Basically, I need a simple metaprogramming thing that allows me to branch to different specializations if t

3条回答
  •  执念已碎
    2020-11-30 08:21

    No, but you can overload with a template function which only accepts std::vector. The compiler will choose the most specialized template in such cases.

提交回复
热议问题