Searched defs:MakeCleanup (Results 1 - 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/core/lib/gtl/
H A Dcleanup.h16 // MakeCleanup(f) returns an RAII cleanup object that calls 'f' in its
17 // destructor. The easiest way to use MakeCleanup is with a lambda argument,
25 // auto fp_cleaner = gtl::MakeCleanup([fp] { fclose(fp); });
37 // You can use Cleanup<F> directly, instead of using MakeCleanup and auto,
54 // destroyed. Cleanup<F> is the return type of gtl::MakeCleanup(F).
106 TF_MUST_USE_RESULT Cleanup<DecayF> MakeCleanup(F&& f) { function in namespace:tensorflow::gtl

Completed in 112 milliseconds