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.
在 Delphi 中存在可以为给定类添加方法的类助手。
C++ 中是否有任何设计模式可以做到这一点?
在 .net 中,您有类似的扩展方法。在 Python 中,您可以使用类似的猴子补丁。在标准 C++ 中,没有与 Delphi 类助手类似的东西。