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

Scope guard that calls Reset() on its cache when it goes out of scope&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ResetGuard;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CCoinsViewCache/ResetGuard/2constructor-0f.adoc[`ResetGuard`]         [.small]#[constructor]#
| Constructors
| xref:CCoinsViewCache/ResetGuard/2destructor.adoc[`&#126;ResetGuard`] [.small]#[destructor]#
| Reset the guarded cache when the guard is destroyed&period;
| xref:CCoinsViewCache/ResetGuard/operator_assign-0b.adoc[`operator&equals;`] 
| Assignment operators
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:CCoinsViewCache.adoc[CCoinsViewCache]`
| CCoinsView that adds a memory cache for transactions to another CCoinsView
|===


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