摘要:
1.auto_ptr移转拥有权:#include <iostream>#include <memory>using namespace std;template <class T>ostream & operator<<(ostream& strm,const auto_ptr<T>& p){ if (p.get()==NULL) { strm<<"NULL"; } else { strm<<*p; } return strm;}int main(){ auto_pt 阅读全文