64,654
社区成员
发帖
与我相关
我的任务
分享
#include <vector>
template<class T>
class MyVector:public std::vector<T>
{
};
template<typename T> using LPVector=MyVector<T>*;
void main()
{
MyVector<int> v;
LPVector<int> p=&v;
}
#include <vector>
template<typename T>
using MyVector = std::vector<T>;
int main() {
MyVector<int> vec;
}
template<class T>
class MyVector:public std::vector<T>
{
};