3 ms·probably std::string would throw std::bad_alloc, and there is also the failbit flag which std::getline setsby blackpill0w 4y agoprobably std::string would throw std::bad_alloc, and there is also the failbit flag which std::getline sets