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

Method AsUnsigned

IntelPresentMon/CommonUtilities/log/ErrorCode.cpp:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return true;
30 }
31 std::optional<uint64_t> ErrorCode::AsUnsigned() const {
32 return HasUnsigned() ?
33 std::optional{ std::get<uint64_t>(integral_) } : std::nullopt;
34 }
35 std::optional<int64_t> ErrorCode::AsSigned() const {
36 return HasSigned() ?
37 std::optional{ std::get<int64_t>(integral_) } : std::nullopt;

Callers 1

ErrorCodeArg_Class · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected