IDA C++ SDK 9.2
Loading...
Searching...
No Matches
janitor_t< T > Struct Template Reference

Resource janitor to facilitate use of the RAII idiom. More...

#include <pro.h>

Public Member Functions

 janitor_t (T &r)
 Constructor.
 ~janitor_t ()
 We provide no implementation for this function, you should provide specialized implementation yourself.

Protected Attributes

T & resource

Detailed Description

template<typename T>
struct janitor_t< T >

Resource janitor to facilitate use of the RAII idiom.

Constructor & Destructor Documentation

◆ janitor_t()

template<typename T>
janitor_t< T >::janitor_t ( T & r)
inline

Constructor.

◆ ~janitor_t()

template<typename T>
janitor_t< T >::~janitor_t ( )

We provide no implementation for this function, you should provide specialized implementation yourself.

Member Data Documentation

◆ resource

template<typename T>
T& janitor_t< T >::resource
protected

The documentation for this struct was generated from the following file:
  • ida-sdk/src/include/pro.h