以下摘自gsl.hMicrosoft的gsl库(https://github.com/microsoft/gsl):
namespace gsl
{
//
// GSL.owner: ownership pointers
//
using std::unique_ptr;
using std::shared_ptr;
template<class T>
using owner = T;
...
};
Run Code Online (Sandbox Code Playgroud)
我无法理解以下别名模板的含义:
template<class T>
using owner = T;
Run Code Online (Sandbox Code Playgroud)
有什么解释吗?