lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Reference counter structure. More...
#include <ref_counter.h>
Public Types | |
typedef allocator_type_ | allocator_type |
Allocator type. | |
Static Public Member Functions | |
static ref_counts * | create (allocator_type allocator, Counter references, Counter weakReferences) |
Allocates and constructs a new internal reference counting object from the given parameters. | |
static void | destroy (const ref_counts *counts) |
Destructs and deallocates the given internal reference counting object. | |
Public Attributes | |
Counter | references |
Reference counter. | |
Counter | weakReferences |
Weak reference count. | |
Protected Member Functions | |
ref_counts (const allocator_type_ &allocator, Counter references, Counter weakReferences) | |
Constructor. |
Reference counter structure.