ios_base& right(ios_base& str);
The maiipulator effectively calls str.setf(ios_base::right, ios_base::adjustfield), then returns str.