enable-shared-from-this
Why does enable_shared_from_this embed a weak pointer instead of embedding the reference counter directly?
The enable_shared_from_this helper contains a weak pointer that is set when creating shared pointer to the object. That means there is the reference-count (allocated separately or together with the ob[详细]
2023-03-23 11:20 分类:问答