list<int*> l;int *a=new int;
int *b=new int ;如果list<int*> l;定义局部变量,那么局部执行完好,要不要释放 a 和b啊?还是list会自动释放呢?是不是要重新遍历一下 l,在每个delete啊?