Chromium Embedded Framework (CEF)
128.4.2+g5c235a2+chromium-128.0.6613.18
|
A class may extend from SupportsWeakPtr to let others take weak pointers to it. More...
#include "include/base/cef_weak_ptr.h"
Public Member Functions | |
SupportsWeakPtr ()=default | |
SupportsWeakPtr (const SupportsWeakPtr &)=delete | |
SupportsWeakPtr & | operator= (const SupportsWeakPtr &)=delete |
WeakPtr< T > | AsWeakPtr () |
Protected Member Functions | |
~SupportsWeakPtr ()=default | |
Additional Inherited Members | |
Static Public Member Functions inherited from base::cef_internal::SupportsWeakPtrBase | |
template<typename Derived > | |
static WeakPtr< Derived > | StaticAsWeakPtr (Derived *t) |
A class may extend from SupportsWeakPtr to let others take weak pointers to it.
This avoids the class itself implementing boilerplate to dispense weak pointers. However, since SupportsWeakPtr's destructor won't invalidate weak pointers to the class until after the derived class' members have been destroyed, its use can lead to subtle use-after-destroy issues.
|
default |
|
delete |
|
protecteddefault |
|
inline |
|
delete |