You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Unique Ownership:** When a `std::unique_ptr` is bound, the container takes full ownership. The object is freed when the container is destroyed or if the unique pointer is replaced by another.
147
-
-**Shared Ownership:** When a `std::shared_ptr` is bound, the container shares ownership with other parts of the program. The object remains valid as long as any `shared_ptr` references it, and is not replaced by another one.
145
+
-**Unique Ownership:** When a `std::unique_ptr` is installed, the container takes full ownership. The object is freed when the container is destroyed or if the unique pointer is replaced by another.
146
+
-**Shared Ownership:** When a `std::shared_ptr` is installed, the container shares ownership with other parts of the program. The object remains valid as long as any `shared_ptr` references it, and is not replaced by another one.
148
147
2.**Non-Ownership References:**
149
148
150
149
-**Raw Pointers:** When a raw pointer is bound, the container does not manage the object's lifecycle. The object must be managed and freed by the user. The container only stores the pointer.
0 commit comments