Is this post still true? Which iomanip manipulators are 'sticky'?
As I understand all number manipulators are sticky like hex, oct, fixed, scientific. But not left and right. Are there any other that are sticky? With sticky I mean you can use the output stream more than once without you have to set the manipulator again.
I used this Code to test:
std::istringstream test { "Fully !!!weired~ word0s!! cheers" };
std::cout << std::right << std::setw(20) << std::scientific;
while (test.good()) {
std::string x;
test >> x;
std::cout << x << "\n";
}
std::cout << 0.1;
Output:
Fully
!!!weired~
word0s!!
cheers
1.000000e-01