I don't see why not? If you just make sure that if you pass this map of sets to functions by reference instead of value there shouldn't be a problem? As for whether it's the most efficient way to figure out if a ZIP code belongs to a band, I don't know, it was just the first idea that came to mind.