size_t is all about

What exactly is size_t all about compare to int, and what's their differences?
Last edited on
std::size_t is just a fancy way of writing and explicitly telling that you are dealing with memory size of something, ie. array

otherwise it's the same thing as unsigned long, but the actual variable size is implementation defined.

it's different in differenct compilers like, msvc, gcc, llvm....
Last edited on
Topic archived. No new replies allowed.