It's a typical use mode of smart pointer for storing object references in STL containers, like vector, map, the point will be released automatically when no one reference to it.