MySQL 8.4.2
Source Code Documentation
Owner Class Reference

a simple move-only type to track ownership. More...

Public Member Functions

 Owner ()=default
 
 Owner (const Owner &)=delete
 
Owneroperator= (const Owner &)=delete
 
 Owner (Owner &&rhs)
 
Owneroperator= (Owner &&rhs)
 
 ~Owner ()=default
 
void release ()
 release ownership. More...
 
 operator bool () const
 check if still owned. More...
 

Private Attributes

bool owns_ {true}
 

Detailed Description

a simple move-only type to track ownership.

Constructor & Destructor Documentation

◆ Owner() [1/3]

Owner::Owner ( )
default

◆ Owner() [2/3]

Owner::Owner ( const Owner )
delete

◆ Owner() [3/3]

Owner::Owner ( Owner &&  rhs)
inline

◆ ~Owner()

Owner::~Owner ( )
default

Member Function Documentation

◆ operator bool()

Owner::operator bool ( ) const
inline

check if still owned.

◆ operator=() [1/2]

Owner & Owner::operator= ( const Owner )
delete

◆ operator=() [2/2]

Owner & Owner::operator= ( Owner &&  rhs)
inline

◆ release()

void Owner::release ( )
inline

release ownership.

Member Data Documentation

◆ owns_

bool Owner::owns_ {true}
private

The documentation for this class was generated from the following file: