GCC Middle and Back End API Reference
auto_flag< T > Class Template Reference

#include <cfg.h>

Inheritance diagram for auto_flag< T >:

Public Member Functions

 auto_flag (T *sptr)
 
 ~auto_flag ()
 
 operator T () const
 

Private Attributes

Tm_sptr
 
T m_flag
 

Detailed Description

template<class T>
class auto_flag< T >
Generic RAII class to allocate a bit from storage of integer type T.
The allocated bit is accessible as mask with the single bit set
via the conversion operator to T.   

Constructor & Destructor Documentation

◆ auto_flag()

◆ ~auto_flag()

template<class T >
auto_flag< T >::~auto_flag ( )
inline

Member Function Documentation

◆ operator T()

template<class T >
auto_flag< T >::operator T ( ) const
inline

Field Documentation

◆ m_flag

◆ m_sptr

template<class T >
T* auto_flag< T >::m_sptr
private

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