key compare helper functions need to be inline to avoid multiple definitions.