Special types Strings and vectors provide types std::string::size_type Integral type to use for indexes eg. pass to at(), returned from find() std::string::difference_type Integral type for element distances Similarly std::vector::size_type std::vector::difference_type