PHP中文网2017-04-17 13:41:21
Cannot be deleted.
This is related to the mechanism of std::shared_ptr. Here, values stores a reference to a vector, which will be released after storage_iterator
destruction. Saving this reference ensures that as long as storage_iterator
survives, the reference objects (values) bound to the iterator will also survive.
怪我咯2017-04-17 13:41:21
Do you want to delete the initialization of values in the constructor or delete the entire values member?