1,boost::shared_ptr定制删除器为成员函数:
   boost::shared_ptr<std::string> auto_clear(get_string(), boost::mem_fn(&std::string::clear));