模板别名如何影响模板参数推导?
在 C++03 中,模板参数推导在某些上下文中不会发生。例如: template struct B {}; template struct A { typedef B type; }; template void f(typenam…
我可以使用别名模板来专门化类模板吗?
这是一个简单的例子: class bar {}; template class foo {}; template <> using foo = bar; 这是允许的吗?…
我可以使用模板别名作为模板模板参数吗?
我可以使用模板别名作为模板模板参数吗? template class> struct foo {}; template using simple_ptr = std::unique_ptr; foo a; // this doesn't wo…
- 共 1 页
- 1