1,boost::shared_ptr定制刪除器為成員函數:
   boost::shared_ptr<std::string> auto_clear(get_string(), boost::mem_fn(&std::string::clear));