The Vish Visualization Shell 0.3
Vish
MemCore::Auto< Object > Struct Template Reference

A wrapper for constructing automatic or static objects or any kind of object whose destruction shall not be managed by strong reference pointers, but reference pointers to it are still allowed. More...

#include <elementary/memcore/RefPtr.hpp>

Inheritance diagram for MemCore::Auto< Object >:

Detailed Description

template<class Object>
struct MemCore::Auto< Object >

A wrapper for constructing automatic or static objects or any kind of object whose destruction shall not be managed by strong reference pointers, but reference pointers to it are still allowed.

The constructor just increments the strong reference count to allow code such as:

{
Auto<X> x;
{
RefPtr<X> px = &x;
}
}
StrongPtr< Object, ObjectBase > RefPtr
Convenience template typedef to use RefPtr instead of StrongPtr.
Definition RefPtr.hpp:776