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.
我需要编写一些代码,以便我的类模板的实例可以找出它是否处理字符串、整数、另一个类的实例等。有没有办法做到这一点?我需要能够概括模板类中的函数,而不将函数传递给它的实例。