Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | Friends | List of all members
android::base::ScopeGuard< F > Class Template Reference

#include <scopeguard.h>

Public Member Functions

constexpr ScopeGuard (F &&f)
 
constexpr ScopeGuard (ScopeGuard &&that) noexcept
 
template<typename Functor >
constexpr ScopeGuard (ScopeGuard< Functor > &&that)
 
 ~ScopeGuard ()
 
 ScopeGuard ()=delete
 
 ScopeGuard (const ScopeGuard &)=delete
 
void operator= (const ScopeGuard &)=delete
 
void operator= (ScopeGuard &&that)=delete
 
void Disable ()
 
constexpr bool active () const
 

Private Attributes

f_
 
bool active_
 

Friends

template<typename Functor >
class ScopeGuard
 

Constructor & Destructor Documentation

◆ ScopeGuard() [1/5]

template<typename F >
constexpr android::base::ScopeGuard< F >::ScopeGuard ( F &&  f)
inlineconstexpr

◆ ScopeGuard() [2/5]

template<typename F >
constexpr android::base::ScopeGuard< F >::ScopeGuard ( ScopeGuard< F > &&  that)
inlineconstexprnoexcept

◆ ScopeGuard() [3/5]

template<typename F >
template<typename Functor >
constexpr android::base::ScopeGuard< F >::ScopeGuard ( ScopeGuard< Functor > &&  that)
inlineconstexpr

◆ ~ScopeGuard()

template<typename F >
android::base::ScopeGuard< F >::~ScopeGuard ( )
inline

◆ ScopeGuard() [4/5]

template<typename F >
android::base::ScopeGuard< F >::ScopeGuard ( )
delete

◆ ScopeGuard() [5/5]

template<typename F >
android::base::ScopeGuard< F >::ScopeGuard ( const ScopeGuard< F > &  )
delete

Member Function Documentation

◆ active()

template<typename F >
constexpr bool android::base::ScopeGuard< F >::active ( ) const
inlineconstexpr

◆ Disable()

template<typename F >
void android::base::ScopeGuard< F >::Disable ( )
inline

◆ operator=() [1/2]

template<typename F >
void android::base::ScopeGuard< F >::operator= ( const ScopeGuard< F > &  )
delete

◆ operator=() [2/2]

template<typename F >
void android::base::ScopeGuard< F >::operator= ( ScopeGuard< F > &&  that)
delete

Friends And Related Function Documentation

◆ ScopeGuard

template<typename F >
template<typename Functor >
friend class ScopeGuard
friend

Member Data Documentation

◆ active_

template<typename F >
bool android::base::ScopeGuard< F >::active_
private

◆ f_

template<typename F >
F android::base::ScopeGuard< F >::f_
private

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