Why does this work?
set <pair<int, int>> prevIslands;
While this does not:
unordered_set <pair<int, int>> prevIslands;
And gives the error:
required from 'struct std::__and_<std::__is_fast_hash<std::hash<std::pair<int, int> > >, std::__detail::__is_noexcept_hash<std::pair<int, int>, std::hash<std::pair<int, int> > > >'
Do set and unordered_set have different requirements from the underlying container object?