taco-db
0.1.0
|
Specialization of ResourceGuard when we use an additional boolean flag to denote the invalid value. More...
#include <utils/ResourceGuard.h>
Public Member Functions | |
ResourceGuard () | |
ResourceGuard (T val) | |
~ResourceGuard () | |
ResourceGuard (const ResourceGuard &)=delete | |
ResourceGuard & | operator= (const ResourceGuard &)=delete |
ResourceGuard (ResourceGuard &&other) | |
ResourceGuard & | operator= (ResourceGuard &&other) |
operator T () const | |
T | Get () const |
operator bool () const | |
bool | IsValid () const |
void | Reset () |
T | Release () |
constexpr bool | operator== (T rhs) const |
constexpr bool | operator!= (T rhs) const |
Private Attributes | |
T | m_val |
bool | m_isvalid |
Specialization of ResourceGuard when we use an additional boolean flag to denote the invalid value.
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
delete |
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
|
private |
|
private |