3 ms·
std::map::find (item) != map.end() <=> std::map::contain (item)
by PaulDavisThe1st 4y ago
std::map::find (item) != map.end() <=> std::map::contain (item)
- zimpenfish 4y agoI think the problem is that with `std::map::find(item)` you get the value back but you don't with `std::map::contain(item)` - which means a second lookup to actually retrieve the value, no?