The Vish Visualization Shell 0.3
Vish
List of all members
MemCore::reference_base< X > Struct Template Reference

An convenience class to allow using std::shared_ptr and the ecosystem of the STL library in a syntax similar to the MemCore::RefPtr . More...

#include <elementary/memcore/std_refptr.hpp>

Inheritance diagram for MemCore::reference_base< X >:

Detailed Description

template<class X>
struct MemCore::reference_base< X >

An convenience class to allow using std::shared_ptr and the ecosystem of the STL library in a syntax similar to the MemCore::RefPtr .

They will not be fully compatible, but in some situations they may be sufficient.

Basically just use lower case and underline for these kind of pointers instead of upper cases like for the RefPtr. Usage example:

struct Y : reference_base<Y>
{
Y()
{}
};
void Z()
{
Y::refptr y = Y::New();
}
An convenience class to allow using std::shared_ptr and the ecosystem of the STL library in a syntax ...
Definition std_refptr.hpp:34
Definition elementary/memcore/test/shared_ptr/main.cpp:55