I have a string s, and I need it to pad up right side of the string with spaces, up to 15 chars. I tried using setw(), but that just adds 15 spaces regardless.
So if s = "aaaaaaaaaaaaaaa" (15 chars), no white space should be added.
If s = "aaa", then 12 white space characters should be added.
Is there a function for this in iomanip?