X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..36c5850bcf17593483042aa6253f68fd610ee72b:/interface/wx/sharedptr.h diff --git a/interface/wx/sharedptr.h b/interface/wx/sharedptr.h index 2b18e2a471..f3c2131c35 100644 --- a/interface/wx/sharedptr.h +++ b/interface/wx/sharedptr.h @@ -2,14 +2,13 @@ // Name: sharedptr.h // Purpose: interface of wxSharedPtr // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** A smart pointer with non-intrusive reference counting. - It is modeled after @c boost::shared_ptr<> and can be used with STL + It is modelled after @c boost::shared_ptr<> and can be used with STL containers and wxVector unlike @c std::auto_ptr<> and wxScopedPtr. @library{wxbase} @@ -61,7 +60,9 @@ public: T operator*() const; /** - Returns pointer to its object or @NULL. + Smart pointer member access. Returns pointer to its object. + + If the internal pointer is @NULL this method will cause an assert in debug mode. */ T* operator->() const;