vector::size_type A type that counts the number of elements in a vector. basic_string::size_type n unsigned integer type that can represent the number of elements and indices in a string.