[#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. == Synopsis Declared in `<coins.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:CCoinsViewCache/ResetGuard.adoc[ResetGuard] CreateResetGuard() noexcept; ---- == Return Value A guard that resets this cache on destruction. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#