default value of template parameter c++

template <typename T, typename CONT = std::vector<T> >

= std::vector<T> is the default value of template parameter CONT

 

猜你喜欢

转载自www.cnblogs.com/aspirs/p/11258558.html