2012年8月22日
摘要: 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 阅读全文
posted @ 2012-08-22 22:54 咆哮的蛋蛋 阅读(135) 评论(0) 推荐(1) 编辑