heap.erase(heap.begin()); heap.insert(10); for(Iterator it = heap.begin();it!=heap.end();++it){ cout<<*it<<" "; } system("pause"); return 0; }[cpp]