Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
comet::invariant_lock_impl::enforcer< CLASS > Struct Template Reference
#include <invariant_lock.h>
Inheritance diagram for comet::invariant_lock_impl::enforcer< CLASS >:


Public Member Functions | |
| enforcer (const CLASS *pobj, void(CLASS::*passert)() const) | |
Public Attributes | |
| void(CLASS::* | m_passert )() const |
| const CLASS * | m_pobj |
Detailed Description
template<typename CLASS>
struct comet::invariant_lock_impl::enforcer< CLASS >
A version of invariant_lock able to call any void member of a class. The member should provide an assertable condition that gets asserted on creation and destruction of the lock. - See also:
- create_invariant_lock
The documentation for this struct was generated from the following file: