标签: smart-pointers raw-pointer
在哪种情况下使用var express = require('express'); var app = express(); var server = require('http').Server(app); app.listen(4000); 而不是raw pointer更好。由于自毁是smart pointer优于smart pointer的优势。但是raw pointer比raw pointer有什么优势。
var express = require('express'); var app = express(); var server = require('http').Server(app); app.listen(4000);
raw pointer
smart pointer