scope_guard.h File Reference

#include <comet/config.h>

Include dependency graph for scope_guard.h:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  comet
namespace  comet::impl

Classes

class  comet::impl::scope_guard_impl_base
class  comet::impl::scope_guard_impl_0< F >
class  comet::impl::scope_guard_impl_1< F, P1 >
class  comet::impl::scope_guard_impl_2< F, P1, P2 >
class  comet::impl::scope_guard_impl_3< F, P1, P2, P3 >
class  comet::impl::obj_scope_guard_impl_0< Obj, MemFun >
class  comet::impl::obj_scope_guard_impl_1< Obj, MemFun, P1 >
class  comet::impl::obj_scope_guard_impl_2< Obj, MemFun, P1, P2 >
class  comet::impl::ref_holder< T >

Typedefs

typedef const impl::scope_guard_impl_base & scope_guard


Detailed Description

Scope-guards can be used to proivde transactional integrity.

scope_guard and friends are adopted from source by Andrei Alexandrescu and Petru Marginean.

See the article.