[#CCoinsViewCache-CreateResetGuard]
= xref:CCoinsViewCache.adoc[CCoinsViewCache]::CreateResetGuard
:relfileprefix: ../
:mrdocs:

Create a scoped guard that will call `Reset()` on this cache when it goes out of scope&period;

== Synopsis

Declared in `&lt;coins&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:CCoinsViewCache/ResetGuard.adoc[ResetGuard]
CreateResetGuard() noexcept;
----

== Return Value

A guard that resets this cache on destruction&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
