![]() |
MAiNGO
|
Helper class that can be used to enforce the caller to explicitly state that the variable he passed may be changed. More...
#include <babUtils.h>
Public Types | |
typedef T | type |
Public Member Functions | |
OutVar (T &ref) noexcept | |
OutVar (T &&)=delete | |
OutVar (const OutVar &) noexcept=default | |
OutVar & | operator= (const OutVar &x) noexcept=default |
operator T & () const noexcept | |
T & | get () const noexcept |
Private Attributes | |
T * | _ptr |
Helper class that can be used to enforce the caller to explicitly state that the variable he passed may be changed.
Use as int a=3; foo(out_par(a)); or foo(OutVar<int>(a));
typedef T babBase::OutVar< T >::type |
type of OutVar
|
inlineexplicitnoexcept |
Copy
|
delete |
Don't use r-value copy constructor
|
defaultnoexcept |
Use default copy constructor
|
inlinenoexcept |
Get reference
|
inlinenoexcept |
Access via ()
|
defaultnoexcept |
Use default assignment
|
private |
Pointer to object of type T