template <typename F>

class Cleanup

Defined at line 1638 of file ../../third_party/boringssl/src/crypto/fipsmodule/sha/../../internal.h

Cleanup implements a custom scope guard, when the cleanup logic does not fit

in a destructor. Usage:

bssl::Cleanup cleanup = [

&

] { SomeCleanupWork(local_var); };

Public Methods

void Cleanup<F> (F func)

Defined at line 1643 of file ../../third_party/boringssl/src/crypto/fipsmodule/sha/../../internal.h

void Cleanup<F> (const Cleanup<F> & )

Defined at line 1644 of file ../../third_party/boringssl/src/crypto/fipsmodule/sha/../../internal.h

Cleanup<F> & operator= (const Cleanup<F> & )

Defined at line 1645 of file ../../third_party/boringssl/src/crypto/fipsmodule/sha/../../internal.h

void ~Cleanup<F> ()

Defined at line 1646 of file ../../third_party/boringssl/src/crypto/fipsmodule/sha/../../internal.h