WebCFace 2.9.0
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
SafeGlobal< T > Class Template Reference

#include <webcface/common/internal/safe_global.h>

Public Member Functions

template<typename... Args, typename std::enable_if_t<(!std::is_same_v< std::decay_t< Args >, SafeGlobal > &&...), std::nullptr_t > = nullptr>
 SafeGlobal (Args &&...args)
 
 SafeGlobal (const SafeGlobal &)=delete
 
SafeGlobaloperator= (const SafeGlobal &)=delete
 
 SafeGlobal (SafeGlobal &&)=delete
 
SafeGlobaloperator= (SafeGlobal &&)=delete
 
 ~SafeGlobal ()
 
 operator bool () const
 
T & operator* ()
 
T * operator-> ()
 

Constructor & Destructor Documentation

◆ SafeGlobal() [1/3]

template<typename T >
template<typename... Args, typename std::enable_if_t<(!std::is_same_v< std::decay_t< Args >, SafeGlobal > &&...), std::nullptr_t > = nullptr>
SafeGlobal ( Args &&...  args)
inline

コピーコンストラクタを禁止するため、ArgがSafeGlobalの場合を除外

◆ SafeGlobal() [2/3]

template<typename T >
SafeGlobal ( const SafeGlobal< T > &  )
delete

◆ SafeGlobal() [3/3]

template<typename T >
SafeGlobal ( SafeGlobal< T > &&  )
delete

◆ ~SafeGlobal()

template<typename T >
~SafeGlobal ( )
inline

Member Function Documentation

◆ operator bool()

template<typename T >
operator bool ( ) const
inline

◆ operator*()

template<typename T >
T & operator* ( )
inline

◆ operator->()

template<typename T >
T * operator-> ( )
inline

◆ operator=() [1/2]

template<typename T >
SafeGlobal & operator= ( const SafeGlobal< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
SafeGlobal & operator= ( SafeGlobal< T > &&  )
delete

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