Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读Qt Coding Conventions 有一件事让我很困惑
要避免的事情: 不要从模板/工具类继承
要避免的事情:
不要从模板/工具类继承
什么是工具类?
我不同意 Vahid Farahmand 的回答,模板类与工具类不同。
QT 工具类的文档说:
Qt 配备了一系列功能强大的工具类,从容器和迭代器到用于字符串处理和操作的类。其他类提供应用程序基础架构支持、处理插件加载和管理配置文件。
这些是旨在执行特定功能的具体类。模板类提供泛型类型。
AFAIK 是一样的。同一事物的两个名字。