Searched refs:ScopedResource (Results 1 – 1 of 1) sorted by relevance
22 struct ScopedResource { struct23 explicit ScopedResource(RESOURCE_TYPE r) : r_(r) { CHECK(r); } in ScopedResource() function24 ~ScopedResource() { CLOSE_FN(r_); } in ~ScopedResource() argument28 using ScopedFD = ScopedResource<int, close>; argument29 using ScopedDir = ScopedResource<DIR*, closedir>;