MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ClearAndGetAddressOf

Method ClearAndGetAddressOf

IntelPresentMon/CommonUtilities/win/Handle.cpp:60–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 return std::exchange(handle_, nullptr);
59 }
60 Handle::HandleType* Handle::ClearAndGetAddressOf()
61 {
62 Clear();
63 return &handle_;
64 }
65 Handle::operator bool() const noexcept
66 {
67 return handle_ != nullptr && handle_ != INVALID_HANDLE_VALUE;

Callers 2

OpenCurrentProcessTokenFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected