MCPcopy Create free account
hub / github.com/RenderKit/embree / GetVoidPtr

Method GetVoidPtr

tutorials/common/imgui/imgui.cpp:2287–2293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2285}
2286
2287void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
2288{
2289 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
2290 if (it == Data.end() || it->key != key)
2291 return NULL;
2292 return it->val_p;
2293}
2294
2295// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer.
2296int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val)

Callers 1

FindWindowByIDMethod · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected