search

Home  >  Q&A  >  body text

c++ - template定义中typename关键字看不懂

伊谢尔伦伊谢尔伦2803 days ago405

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-17 13:09:54

    If there is no typename keyword, the compiler cannot tell whether size_type is a member of std::vector<T> or something else. For example, if std::vector<T> has a static member of size_type.

    reply
    0
  • Cancelreply