Home  >  Q&A  >  body text

操作符重载 - c++ 模板类的操作符 () 重载问题

有代码:

template<typename T>
clase AClass
{
    T operator ()() const;
    operator T() const;
}

请问operator T() 是个什么意思??

PHPzPHPz2714 days ago548

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-17 13:17:03

    Custom type conversion

    reply
    0
  • Cancelreply