载入中...
搜索中...
未找到
eve::LifetimeOwner类 参考

Sole owner of an opaque lifetime record; copying is forbidden. 更多...

#include <LifetimeWitness.h>

Public 成员函数

 LifetimeOwner ()=default
 Allocate a lifetime record at owner construction.
 
 LifetimeOwner (const LifetimeOwner &)=delete
 
LifetimeOwner & operator= (const LifetimeOwner &)=delete
 
void reset () noexcept
 Invalidate witnesses without callbacks.
 
LifetimeWitness witness () const noexcept
 Copy a witness without granting shared ownership.
 

详细描述

Sole owner of an opaque lifetime record; copying is forbidden.

在文件 LifetimeWitness.h 第 17 行定义.

构造及析构函数说明

◆ LifetimeOwner() [1/2]

eve::LifetimeOwner::LifetimeOwner ( )
default

Allocate a lifetime record at owner construction.

◆ LifetimeOwner() [2/2]

eve::LifetimeOwner::LifetimeOwner ( const LifetimeOwner &  )
delete

成员函数说明

◆ operator=()

LifetimeOwner & eve::LifetimeOwner::operator= ( const LifetimeOwner &  )
delete

◆ reset()

void eve::LifetimeOwner::reset ( )
inlinenoexcept

Invalidate witnesses without callbacks.

在文件 LifetimeWitness.h 第 26 行定义.

被这些函数引用 eve::crowd::Crowd::~Crowd().

◆ witness()

LifetimeWitness eve::LifetimeOwner::witness ( ) const
inlinenoexcept

Copy a witness without granting shared ownership.

在文件 LifetimeWitness.h 第 28 行定义.

引用了 result.


该类的文档由以下文件生成: