NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
bm::ptr_guard< T > Class Template Reference

Search Toolkit Book for bm::ptr_guard

Mini auto-pointer for internal memory management. More...

#include <util/bitset/bmutil.h>

Public Member Functions

 ptr_guard (T *p) noexcept
 
 ~ptr_guard ()
 

Private Member Functions

 ptr_guard (const ptr_guard< T > &p)
 
ptr_guardoperator= (const ptr_guard< T > &p)
 

Private Attributes

Tptr_
 

Detailed Description

template<class T>
class bm::ptr_guard< T >

Mini auto-pointer for internal memory management.

Definition at line 155 of file bmutil.h.

Constructor & Destructor Documentation

◆ ptr_guard() [1/2]

template<class T >
bm::ptr_guard< T >::ptr_guard ( T p)
inlinenoexcept

Definition at line 158 of file bmutil.h.

◆ ~ptr_guard()

template<class T >
bm::ptr_guard< T >::~ptr_guard ( )
inline

Definition at line 159 of file bmutil.h.

References bm::ptr_guard< T >::ptr_.

◆ ptr_guard() [2/2]

template<class T >
bm::ptr_guard< T >::ptr_guard ( const ptr_guard< T > &  p)
private

Member Function Documentation

◆ operator=()

template<class T >
ptr_guard& bm::ptr_guard< T >::operator= ( const ptr_guard< T > &  p)
private

Member Data Documentation

◆ ptr_

template<class T >
T* bm::ptr_guard< T >::ptr_
private

Definition at line 164 of file bmutil.h.

Referenced by bm::ptr_guard< T >::~ptr_guard().


The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:58:23 2024 by modify_doxy.py rev. 669887