Class xlifepp::DefaultSPStorage#

template<class T>
class DefaultSPStorage#

Collaboration diagram for xlifepp::DefaultSPStorage:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "1" [label="xlifepp::DefaultSPStorage< T >" tooltip="xlifepp::DefaultSPStorage< T >" fillcolor="#BFBFBF"] }

Implementation of the StoragePolicy used by SmartPtr.

Public Types

typedef T *InitPointerType#

type used to declare OwnershipPolicy type.

typedef T *PointerType#

type returned by operator->

typedef T &ReferenceType#

type returned by operator*

typedef T *StoredType#

the type of the pointee_ object

Public Functions

inline DefaultSPStorage()#

default constructor

inline DefaultSPStorage(const DefaultSPStorage&)#

The storage policy doesn’t initialize the stored pointer which will be initialized by the OwnershipPolicy’s clone fn.

template<class U>
inline DefaultSPStorage(const DefaultSPStorage<U>&)#

copy constructor

inline DefaultSPStorage(const StoredType &p)#

constructor by stored type

inline ReferenceType operator*() const#

refenrce operator

inline PointerType operator->() const#

pointer operator