LIPH's C++ Codes
liph::no_destructor< T > Class Template Reference

#include <no_destructor.h>

Public Member Functions

template<typename... Args>
 no_destructor (Args &&...args)
 
 no_destructor (const T &x)
 
 no_destructor (T &&x)
 
 no_destructor (const no_destructor &)=delete
 
no_destructoroperator= (const no_destructor &)=delete
 
 ~no_destructor ()=default
 
const T * get () const
 
T * get ()
 
const T & operator* () const
 
T & operator* ()
 
const T * operator-> () const
 
T * operator-> ()
 

Constructor & Destructor Documentation

◆ no_destructor() [1/4]

template<class T >
template<typename... Args>
liph::no_destructor< T >::no_destructor ( Args &&...  args)
inlineexplicit

◆ no_destructor() [2/4]

template<class T >
liph::no_destructor< T >::no_destructor ( const T &  x)
inlineexplicit

◆ no_destructor() [3/4]

template<class T >
liph::no_destructor< T >::no_destructor ( T &&  x)
inlineexplicit

◆ no_destructor() [4/4]

template<class T >
liph::no_destructor< T >::no_destructor ( const no_destructor< T > &  )
delete

◆ ~no_destructor()

template<class T >
liph::no_destructor< T >::~no_destructor ( )
default

Member Function Documentation

◆ get() [1/2]

template<class T >
T * liph::no_destructor< T >::get ( )
inline

◆ get() [2/2]

template<class T >
const T * liph::no_destructor< T >::get ( ) const
inline

◆ operator*() [1/2]

template<class T >
T & liph::no_destructor< T >::operator* ( )
inline

◆ operator*() [2/2]

template<class T >
const T & liph::no_destructor< T >::operator* ( ) const
inline

◆ operator->() [1/2]

template<class T >
T * liph::no_destructor< T >::operator-> ( )
inline

◆ operator->() [2/2]

template<class T >
const T * liph::no_destructor< T >::operator-> ( ) const
inline

◆ operator=()

template<class T >
no_destructor & liph::no_destructor< T >::operator= ( const no_destructor< T > &  )
delete

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