Construct a Cleanup that runs the given callback on scope exit.

Synopsis

Declared in <absl/cleanup/cleanup.h>

Cleanup(Callback callback);

Parameters

Name

Description

callback

The callable to invoke when the guard is destroyed.

Created with MrDocs