Why is std::string\'s size, as determined by sizeof(std::string), yield 8? I thought it should be more than 8 as it h
std::string
sizeof(std::string)
8
Because all your implementation of std::string stores is a pointer to the heap where all of it's data is stored.