Linkclass template encapsulates a smart pointer to an object.
template <class type> class Link : public ListElement<Link<type>>
||Returns the target to which a link points.|
||The type of object to which the link may point.|
explicit Link(type *target);
||The object to which the link initially points.|
Linkclass template provides a mechanism through which a smart pointer to an object of the type given by the
typetemplate parameter can be stored. The link to an object is automatically reset to
nullptrif the target object is destroyed. A class of type
Tto which a link can be established must inherit from the class
LinkTargetclass template stores a list of all links that currently point to it. When the link target is destroyed, all of the links in the list are cleared.
||Dereferencing a |
||Sets the pointer that the |
||The set of links to an object are stored in a list by the |