| cartobase
    5.1.2
    | 
#include <cartobase/smart/rcptr.h>


| Friends | |
| template<class R > | |
| class | ref | 
| template<class R > | |
| class | const_ref | 
The following class is used to get the appropriate const_ref<T> constructor and destructor at compile time. A call to RefConstruction<T>::construct() (resp. RefConstruction<T>::destroy()) calls RCObject::construct<T>() (resp. RCObject::destroy<T>()) if T inherits from RCObject, in other cases, it calls DefaultRefConstruction::construct<T>() (resp. DefaultRefConstruction::destroy<T>()).