Feature #1894

Updated by Zbigniew Rebacz over 5 years ago

One of the issue of One is that it doesn't support custom delectation of the object.n This functionality object.

Here
is inherit from std::unique_ptr. the example:
<pre>
One<HANDLE> handle(OpenProcess(PROCESS_ALL_ACCESS, FALSE, static_cast<dword>(pid)), [](HANDLE handle) { CloseHandle(handle); );
</pre>

Back