A shared_ptr can share ownership of an object while storing a pointer to another...
kimapr β πΊπΏ β§ β’ β€οΈπ§‘π€π©·π @kimapr@ublog.kimapr.net
A
shared_ptrcan share ownership of an object while storing a pointer to another object. This feature can be used to point to member objects while owning the object they belong to. The stored pointer is the one accessed byget(), the dereference and the comparison operators. The managed pointer is the one passed to the deleter when use count reaches zero.
Huuhhh