xml*_*lmx 5 c++ alias templates c++11 ms-gsl
以下摘自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)
有什么解释吗?
| 归档时间: |
|
| 查看次数: |
2124 次 |
| 最近记录: |