我知道如何编写一些东西,但我确信有一种传递类似的标准方法,func<TheType*>()并使用模板魔法来提取在代码中使用的TheType(可能是TheType :: SomeStaticCall).
func<TheType*>()
传入ptr时获取该类型的标准方式/功能是什么?
c++ templates
c++ ×1
templates ×1