MySQL 9.1.0
Source Code Documentation
mysql_harness::UniquePtr< T > Class Template Reference

#include <unique_ptr.h>

Inheritance diagram for mysql_harness::UniquePtr< T >:
[legend]

Public Member Functions

 UniquePtr ()=default
 
 UniquePtr (T *ptr, std::function< void(T *)> deleter=std::default_delete< T >())
 
 UniquePtr (const UniquePtr< T > &)=delete
 
 UniquePtr (UniquePtr< T > &&other)
 
UniquePtroperator= (const UniquePtr< T > &)=delete
 
UniquePtroperator= (UniquePtr< T > &&other)
 
T * release ()
 
UniquePtr< T >::deleter_type get_deleter ()
 

Private Attributes

bool get_deleter_called_ = false
 

Constructor & Destructor Documentation

◆ UniquePtr() [1/4]

template<typename T >
mysql_harness::UniquePtr< T >::UniquePtr ( )
default

◆ UniquePtr() [2/4]

template<typename T >
mysql_harness::UniquePtr< T >::UniquePtr ( T *  ptr,
std::function< void(T *)>  deleter = std::default_delete<T>() 
)
inline

◆ UniquePtr() [3/4]

template<typename T >
mysql_harness::UniquePtr< T >::UniquePtr ( const UniquePtr< T > &  )
delete

◆ UniquePtr() [4/4]

template<typename T >
mysql_harness::UniquePtr< T >::UniquePtr ( UniquePtr< T > &&  other)
inline

Member Function Documentation

◆ get_deleter()

template<typename T >
UniquePtr< T >::deleter_type mysql_harness::UniquePtr< T >::get_deleter ( )
inline

◆ operator=() [1/2]

template<typename T >
UniquePtr & mysql_harness::UniquePtr< T >::operator= ( const UniquePtr< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
UniquePtr & mysql_harness::UniquePtr< T >::operator= ( UniquePtr< T > &&  other)
inline

◆ release()

template<typename T >
T * mysql_harness::UniquePtr< T >::release ( )
inline

Member Data Documentation

◆ get_deleter_called_

template<typename T >
bool mysql_harness::UniquePtr< T >::get_deleter_called_ = false
private

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