I would consider this to be a "optimization":
CWhisper* CPythonChat::CreateWhisper(const char* c_szName)
{
auto [itor, inserted] = m_WhisperMap.try_emplace(c_szName, nullptr);
if (inserted)
{
itor->second = CWhisper::New();
}
return itor->second;
}
Best regards