Home  >  Q&A  >  body text

c++ - 在构造函数初始值列表中使用 new 是什么意思?类似 :file(new vector<string>)

PHPzPHPz2714 days ago540

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-17 13:53:35

    Initialization list of constructor
    http://www.cnblogs.com/BlueTzar/articles/1223169.html

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 13:53:35

    is simply a literal meaning, new a vector<string> to initialize the file.

    reply
    0
  • Cancelreply