MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / try_set_existing

Method try_set_existing

ImGuiFileDialog.h:299–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297 }
298
299 bool try_set_existing(T vKey) {
300 if (exist(vKey)) {
301 auto row = m_Dico.at(vKey);
302 m_Array[row] = vKey;
303 return true;
304 }
305 return false;
306 }
307
308 bool exist(const std::string& vKey) const {
309 return (m_Dico.find(vKey) != m_Dico.end());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected