bool ModMatchExpression::matchesSingleElement(const BSONElement& e, MatchDetails* details) const {
    if (!e.isNumber())
        return false;
    return mongoSafeMod(e.numberLong(), static_cast<long long>(_divisor)) == _remainder;
}
bool ModMatchExpression::matchesSingleElement(const BSONElement& e, MatchDetails* details) const {
    if (!e.isNumber())
        return false;
    return mongoSafeMod(e.numberLong(), static_cast<long long>(_divisor)) == _remainder;
}