在 C++ 代码中使用“模板”关键字作为某个对象的属性是什么意思?

问题描述

chromium repo 中的代码是如此平静

  template <typename SupplementType>
  static SupplementType* From(const Supplementable<T>& supplementable) {
    return supplementable.template RequireSupplement<SupplementType>();
  }

我想了解这里发生了什么,但我完全不知道。 我的意思是线:

return supplementable.template RequireSupplement<SupplementType>();

请提供一些此处使用的 C++ 特性的链接

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)