Similarities and differences:
size_t | size_type |
sizeof (XXX) thus obtained is the result of type | string class type and the type of vector class type definitions, the operation returns to the size of the string is the string :: size_type type, not assigned to the string :: size_type int. |
Globally defined type, such as used in an array, for loop | STL class attribute types defined |
sizeof (string :: size_type), sizeof (size_t) // size_t separate line in the longitudinal are equal, the length of win32: 4 win64: 8 |
About size_t extensions:
Note:
Digit binary number treated at the same time called the word length.
Word length is determined by the number of bits of the CPU registers, not determined by the width of the data bus, the data bus width but generally coincides with the number of bits of the CPU.