kblib 0.2.3
General utilities library for modern C++
kblib::RAII_wrapper< T > Struct Template Reference

#include <kblib/simple.h>

Public Member Functions

constexpr ~RAII_wrapper () noexcept(noexcept(t()))
 
constexpr RAII_wrapper (T &&t_)
 
constexpr RAII_wrapper (const T &t_)
 
constexpr RAII_wrapper (const RAII_wrapper &)=delete
 
constexpr RAII_wrapper (RAII_wrapper &&)=delete
 
constexpr RAII_wrapperoperator= (const RAII_wrapper &)=delete
 
constexpr RAII_wrapperoperator= (RAII_wrapper &&)=delete
 

Public Attributes

t
 

Detailed Description

template<typename T>
struct kblib::RAII_wrapper< T >

Definition at line 93 of file simple.h.

Constructor & Destructor Documentation

◆ ~RAII_wrapper()

template<typename T >
constexpr kblib::RAII_wrapper< T >::~RAII_wrapper ( )
inlineconstexprnoexcept

Definition at line 95 of file simple.h.

◆ RAII_wrapper() [1/4]

template<typename T >
constexpr kblib::RAII_wrapper< T >::RAII_wrapper ( T &&  t_)
inlineconstexpr

Definition at line 97 of file simple.h.

◆ RAII_wrapper() [2/4]

template<typename T >
constexpr kblib::RAII_wrapper< T >::RAII_wrapper ( const T &  t_)
inlineconstexpr

Definition at line 99 of file simple.h.

◆ RAII_wrapper() [3/4]

template<typename T >
constexpr kblib::RAII_wrapper< T >::RAII_wrapper ( const RAII_wrapper< T > &  )
constexprdelete

◆ RAII_wrapper() [4/4]

template<typename T >
constexpr kblib::RAII_wrapper< T >::RAII_wrapper ( RAII_wrapper< T > &&  )
constexprdelete

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
constexpr RAII_wrapper & kblib::RAII_wrapper< T >::operator= ( const RAII_wrapper< T > &  )
constexprdelete

◆ operator=() [2/2]

template<typename T >
constexpr RAII_wrapper & kblib::RAII_wrapper< T >::operator= ( RAII_wrapper< T > &&  )
constexprdelete

Member Data Documentation

◆ t

template<typename T >
T kblib::RAII_wrapper< T >::t

Definition at line 94 of file simple.h.


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