但不能使用=赋值符,那样的话会报错,“无法从“int *”转换为“std::shared_ptr”,是不是很熟悉。 这点和share_ptr一致. 构造函数2:make_unique函数.
確定! 回上一頁