- Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) - Set***() functions find pair, insertion on demand if missing. - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
| 2341 | // - Set***() functions find pair, insertion on demand if missing. |
| 2342 | // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. |
| 2343 | void Clear() { Data.clear(); } |
| 2344 | IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const; |
| 2345 | IMGUI_API void SetInt(ImGuiID key, int val); |
| 2346 | IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const; |