Quick Links:

bal | bbl | bdl | bsl

Classes | Namespaces | Defines | Typedefs

bdlb_scopeexit.h File Reference

Provide a general-purpose proctor object for scope-exit logic. More...

Go to the source code of this file.

Classes

class  bdlb::ScopeExit< EXIT_FUNC >

Namespaces

namespace  bdlb

Defines

#define BDLB_SCOPEEXIT_NOEXCEPT_SPEC(...)
#define BDLB_SCOPEEXIT_PROCTOR(NAME, EXIT_FUNC)   BloombergLP::bdlb::ScopeExitAny NAME((EXIT_FUNC))
#define BDLB_SCOPEEXIT_PRIVATE_CAT(X, Y)   BDLB_SCOPEEXIT_PRIVATE_CAT_IMP(X, Y)
#define BDLB_SCOPEEXIT_PRIVATE_CAT_IMP(X, Y)   X##Y
#define BDLB_SCOPEEXIT_PRIVATE_UNIQNUM   __LINE__
#define BDLB_SCOPEEXIT_GUARD(EXIT_FUNC)

Typedefs

typedef ScopeExit
< bsl::function< void()> > 
bdlb::ScopeExitAny

Detailed Description


Define Documentation

#define BDLB_SCOPEEXIT_NOEXCEPT_SPEC (   ...  ) 
#define BDLB_SCOPEEXIT_PROCTOR (   NAME,
  EXIT_FUNC 
)    BloombergLP::bdlb::ScopeExitAny NAME((EXIT_FUNC))
#define BDLB_SCOPEEXIT_PRIVATE_CAT (   X,
  Y 
)    BDLB_SCOPEEXIT_PRIVATE_CAT_IMP(X, Y)
#define BDLB_SCOPEEXIT_PRIVATE_CAT_IMP (   X,
  Y 
)    X##Y
#define BDLB_SCOPEEXIT_PRIVATE_UNIQNUM   __LINE__

This macro is for use by BDLB_SCOPEEXIT_GUARD only to provide unique variable names. It is not undefined by the end of the file but its direct use is not supported under any circumstances.

#define BDLB_SCOPEEXIT_GUARD (   EXIT_FUNC  )