class Poco::ReferenceCounter

Simple ReferenceCounter object, does not delete itself when count reaches 0.

#include <SharedPtr.h>

class ReferenceCounter
{
public:
    // methods

    void
    duplicate();

    int
    release();

    int
    referenceCount() const;
};