Replaced signed int with difference_type which is the signed equivalent of size_type