3 ms·
Is std::endl guaranteed to flush the stream? I’d think you’d be better off with std::cout::flush(), std::flush if you prefer manipulators. It would certainly
by prewett 8y ago
Is std::endl guaranteed to flush the stream? I’d think you’d be better off with std::cout::flush(), std::flush if you prefer manipulators. It would certainly be clearer, assuming it’s not temporary debug code.
- wbkang 8y agoIt is guaranteed to flush.
- TheCoelacanth 8y agoIt is. That is the only reason to use it other than '\n'