kblib 0.2.3
General utilities library for modern C++
kblib::detail_memory::on_destroy< T, D > Struct Template Reference

#include <kblib/memory.h>

Inheritance diagram for kblib::detail_memory::on_destroy< T, D >:
Collaboration diagram for kblib::detail_memory::on_destroy< T, D >:

Public Member Functions

 on_destroy () noexcept=default
 
 on_destroy (const on_destroy &) noexcept(std::is_nothrow_copy_constructible< T >::value and std::is_nothrow_copy_constructible< D >::value)=default
 
 on_destroy (on_destroy &&) noexcept(std::is_nothrow_move_constructible< T >::value and std::is_nothrow_move_constructible< D >::value)=default
 
on_destroyoperator= (const on_destroy &) noexcept(std::is_nothrow_copy_assignable< T >::value and std::is_nothrow_copy_assignable< D >::value)=default
 
on_destroyoperator= (on_destroy &&) noexcept(std::is_nothrow_move_assignable< T >::value and std::is_nothrow_move_assignable< D >::value)=default
 
 operator T& () noexcept
 
 operator const T & () const noexcept
 
 ~on_destroy ()
 

Detailed Description

template<typename T, typename D>
struct kblib::detail_memory::on_destroy< T, D >

Definition at line 158 of file memory.h.

Constructor & Destructor Documentation

◆ on_destroy() [1/3]

template<typename T , typename D >
kblib::detail_memory::on_destroy< T, D >::on_destroy ( )
defaultnoexcept

◆ on_destroy() [2/3]

template<typename T , typename D >
kblib::detail_memory::on_destroy< T, D >::on_destroy ( const on_destroy< T, D > &  ) const
defaultnoexcept

◆ on_destroy() [3/3]

template<typename T , typename D >
kblib::detail_memory::on_destroy< T, D >::on_destroy ( on_destroy< T, D > &&  ) const
defaultnoexcept

◆ ~on_destroy()

template<typename T , typename D >
kblib::detail_memory::on_destroy< T, D >::~on_destroy ( )
inline

Definition at line 183 of file memory.h.

Member Function Documentation

◆ operator const T &()

template<typename T , typename D >
kblib::detail_memory::on_destroy< T, D >::operator const T & ( ) const
inlinenoexcept

Definition at line 181 of file memory.h.

◆ operator T&()

template<typename T , typename D >
kblib::detail_memory::on_destroy< T, D >::operator T& ( )
inlinenoexcept

Definition at line 180 of file memory.h.

◆ operator=() [1/2]

template<typename T , typename D >
on_destroy & kblib::detail_memory::on_destroy< T, D >::operator= ( const on_destroy< T, D > &  )
defaultnoexcept

◆ operator=() [2/2]

template<typename T , typename D >
on_destroy & kblib::detail_memory::on_destroy< T, D >::operator= ( on_destroy< T, D > &&  )
defaultnoexcept

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