C++ 0x具有模板别名(有时称为模板typedef).看到这里.目前的C++规范没有.
你喜欢用什么来解决这个问题?容器对象还是宏?你觉得它值得吗?
c++ templates type-safety
c++ ×1
templates ×1
type-safety ×1