2 ms·
At least you can do `if (auto it = map.find(key); it != map.end())` since C++17.
by account42 4y ago
At least you can do `if (auto it = map.find(key); it != map.end())` since C++17.
- deredede 4y agoI didn't know that was possible, thanks. It's worse than in other languages imo but better than the existing C++ alternatives, I will use it.