[#absl-MakeCleanup] = xref:absl.adoc[absl]::MakeCleanup :relfileprefix: ../ :mrdocs: Create an `absl::Cleanup` from a callback. == Synopsis Declared in `<absl/cleanup/cleanup.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename... Args, typename Callback> xref:absl/Cleanup-0a.adoc[absl::Cleanup<cleanup_internal::Tag, Callback>] MakeCleanup(Callback callback); ---- == Description C++11 type deduction API for creating an instance of `absl::Cleanup`, e.g. `auto c = absl::MakeCleanup(/* callback */);`. == Return Value A `Cleanup` guard owning `callback`. == Parameters [cols="1,4"] |=== | Name| Description | *callback* | The callable to invoke when the guard is destroyed. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#