MySQL 8.3.0
Source Code Documentation
services::Array_ptr Class Reference

A very limited smart pointer to protect against stack unwinding in case an STL class throws an exception. More...

Public Member Functions

 Array_ptr (int *str)
 
int * get ()
 
 ~Array_ptr ()
 

Private Member Functions

Array_ptroperator= (const Array_ptr &)
 
 Array_ptr (const Array_ptr &)
 

Private Attributes

int * m_ptr
 

Detailed Description

A very limited smart pointer to protect against stack unwinding in case an STL class throws an exception.

The interface is similar to unique_ptr.

Constructor & Destructor Documentation

◆ Array_ptr() [1/2]

services::Array_ptr::Array_ptr ( const Array_ptr )
private

◆ Array_ptr() [2/2]

services::Array_ptr::Array_ptr ( int *  str)
inline

◆ ~Array_ptr()

services::Array_ptr::~Array_ptr ( )
inline

Member Function Documentation

◆ get()

int * services::Array_ptr::get ( )
inline

◆ operator=()

Array_ptr & services::Array_ptr::operator= ( const Array_ptr )
private

Member Data Documentation

◆ m_ptr

int* services::Array_ptr::m_ptr
private

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