载入中...
搜索中...
未找到
LifetimeWitness.h
浏览该文件的文档.
Sole owner of an opaque lifetime record; copying is forbidden.
Definition LifetimeWitness.h:17
LifetimeOwner & operator=(const LifetimeOwner &)=delete
LifetimeWitness witness() const noexcept
Copy a witness without granting shared ownership.
Definition LifetimeWitness.h:28
LifetimeOwner()=default
Allocate a lifetime record at owner construction.
LifetimeOwner(const LifetimeOwner &)=delete
Owner-thread lifetime observation; cannot retain or access its owner.
Definition LifetimeWitness.h:6
bool isAlive() const noexcept
Query original owner liveness; owner-thread only.
Definition LifetimeWitness.h:14