Castor3D 0.16.0
Multiplatform 3D engine
|
Allows to declare a scoped variable with an action on construction
and an action on destruction.
More...
#include <BlockGuard.hpp>
Public Member Functions | |
BlockGuard (BlockGuard const &)=delete | |
BlockGuard (BlockGuard &&) noexcept=delete | |
BlockGuard & | operator= (BlockGuard const &)=delete |
BlockGuard & | operator= (BlockGuard &&) noexcept=delete |
template<typename InitFunc > | |
BlockGuard (InitFunc init, CleanFunc clean) | |
Constructor. | |
~BlockGuard () noexcept | |
Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from castor::NonMovable | |
NonMovable ()=default | |
Constructor. | |
~NonMovable () noexcept=default | |
Destructor. | |
Allows to declare a scoped variable with an action on construction
and an action on destruction.
|
delete |
|
deletenoexcept |
|
inline |
Constructor.
[in] | init | The action executed on construction. |
[in] | clean | The action executed on destruction. |
|
inlinenoexcept |
Destructor.
|
deletenoexcept |
|
delete |