Is there a max array length limit in C++? - Stack Overflow
std::size_t is usually (always?) the size of a pointer, not the size of the biggest integer that has native hardware support in the integer math unit. On every x86 OS I've used, size_t is 32-bits for a 32-bit OS and 64-bits for a 64-bit OS. – Mr Fooz Dec ...