Name: Anonymous 2012-08-14 8:33
Declaring a member variable of a class instance
if (is owned)
if (is ownership shared)
if (is it bound to scope)
plain declaration
else
unique_ptr
else
shared_ptr
else
if (it outlives this object)
reference
else
weak_ptr
Did I get it right?
if (is owned)
if (is ownership shared)
if (is it bound to scope)
plain declaration
else
unique_ptr
else
shared_ptr
else
if (it outlives this object)
reference
else
weak_ptr
Did I get it right?