git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52646
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/////////////////////////////////////////////////////////////////////////////
/**
/////////////////////////////////////////////////////////////////////////////
/**
- A smart pointer with non-intrusive reference counting. It is modeled
- after @b boost::shared_ptr and can be used with STL containers
- and wxVector() - unlike @b std::auto_ptr
- and wxScopedPtr().
+ A smart pointer with non-intrusive reference counting. It is modeled after
+ @c boost::shared_ptr and can be used with STL containers and wxVector<T> -
+ unlike @c std::auto_ptr and wxScopedPtr<T>.
+ @category{smartpointers}
- @see wxScopedPtr, wxWeakRef, wxObjectDataPtr
+ @see wxScopedPtr<T>, wxWeakRef<T>, wxObjectDataPtr
class wxSharedPtr<T>
{
public:
class wxSharedPtr<T>
{
public:
+ Constructor.
+
+ Creates shared pointer from the raw pointer @a ptr and takes ownership
+ of it.
- wxSharedPtrT(T* ptr = NULL);
- wxSharedPtrT(const wxSharedPtr<T>& tocopy);
- //@}
+ wxSharedPtr(T* ptr = NULL);
+
+ /// Copy constructor.
+ wxSharedPtr(const wxSharedPtr<T>& tocopy);
operator unspecified_bool_type() const;
/**
operator unspecified_bool_type() const;
/**
- Returns a reference to the object. If the internal pointer is @NULL this
- method will cause an assert in debug mode.
+ Returns a reference to the object. If the internal pointer is @NULL
+ this method will cause an assert in debug mode.