Constructors

Synopses

Declared in <absl/cleanup/cleanup.h>

Move‐construct a Cleanup, transferring ownership of the callback.

Cleanup(Cleanup&& other) = default;

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

Cleanup(Callback callback);

Parameters

Name

Description

other

The guard to move from.

callback

The callable to invoke when the guard is destroyed.

Created with MrDocs