Skip to content

Runtime variable shared pointer clearing #131

Open
@BrianSipos

Description

@BrianSipos

One of the helpful capabilities of the STL shared_ptr class is the ability to define, at initialization, the deleter function which will be used to clean up a particular object instance. And each shared_ptr keeps track of its deleter function for that specific data instance.

It seems like the current M-SHARED-PTR only supports compile-time definition of a CLEAR function, which fits the type-safe nature of M*LIB but limits its ability to handle situations where different contained-data uses are handled by the same pointer type.

Is adding this kind of parity with the STL class desirable in M*LIB? Maybe by a different container than M-SHARED-PTR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions