Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定一种类型的表单a<b<c>>,我可以展开它,以便我取回类型名a,b<c>然后c呢?或者至少能够有一个模板化函数,允许我匹配类型名的元素,例如
a<b<c>>
a
b<c>
c
template <typename C, typename E> fun(C<E>& h, C<E>& i) {...}
提前致谢。
template <template<typename> class C, typename E> fun(C<E>& h, C<E>& i) {...}