| 37 | } |
| 38 | |
| 39 | struct HandleDisposer |
| 40 | { |
| 41 | using pointer = HANDLE; |
| 42 | void operator()(HANDLE handle) const |
| 43 | { |
| 44 | if (handle != NULL || handle != INVALID_HANDLE_VALUE) |
| 45 | { |
| 46 | CloseHandle(handle); |
| 47 | } |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 | using unique_handle = std::unique_ptr<HANDLE, HandleDisposer>; |
| 52 |
nothing calls this directly
no outgoing calls
no test coverage detected