Traits:一种聚合了有用的类型和常数、用以替代模板参数的类,成功地实践了“extra level of indirection(额外的中间层)”这句可以解决所有软件难题的名言。(A class used in place of template parameters. As a class, it aggregates useful types and constants; as a template, it provides an avenue for that "extra level of indirection" that solves all software problems. )
来自C++VIEW 第一期
如果了理解不对,敬请指出!万分感谢。