\section{\class{wxSharedPtr}}\label{wxsharedptr} A smart pointer with non-intrusive reference counting. \wxheading{Derived from} No base class \wxheading{Include files} \wxheading{Data structures} {\small \begin{verbatim} typedef T element\_type \end{verbatim}} \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxSharedPtr::wxSharedPtr}\label{wxsharedptrwxsharedptr} \func{wxEXPLICIT}{wxSharedPtr}{\param{T* }{ptr = NULL}} \func{}{wxSharedPtr}{\param{const wxSharedPtr\& }{tocopy}} Constructors. \membersection{wxSharedPtr::\destruct{wxSharedPtr}}\label{wxsharedptrdtor} \func{}{\destruct{wxSharedPtr}}{\void} Destructor. \membersection{wxSharedPtr::get}\label{wxsharedptrget} \constfunc{T*}{get}{\void} Returns pointer to its object or NULL. \membersection{wxSharedPtr::operator*}\label{wxsharedptroperatorptrt} \constfunc{T\&}{operator*}{\void} Returns pointer to its object or NULL. \membersection{wxSharedPtr::operator->}\label{wxsharedptroperatorderef} \constfunc{T*}{operator->}{\void} Returns pointer to its object or NULL. \membersection{wxSharedPtr::operator=}\label{wxsharedptroperatorassign} \func{wxSharedPtr\& operator}{operator=}{\param{const wxSharedPtr\& }{tocopy}} Assignment operator. \membersection{wxSharedPtr::unique}\label{wxsharedptrunique} \constfunc{bool}{unique}{\void} Returns true if this is the only pointer pointing to its object. \membersection{wxSharedPtr::use\_count}\label{wxsharedptruse\_count} \constfunc{long}{use\_count}{\void} Returns the number of pointers pointing to its object.