MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / find_erase_unsorted

Function find_erase_unsorted

KBotExt/imgui/imgui.h:1871–1871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1869 inline const T* find(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; }
1870 inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; }
1871 inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; }
1872 inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; return (int)off; }
1873};
1874IM_MSVC_RUNTIME_CHECKS_RESTORE

Callers

nothing calls this directly

Calls 2

findFunction · 0.85
erase_unsortedFunction · 0.85

Tested by

no test coverage detected