skipws

ios_base& skipws(ios_base& str);

The manipulator effectively calls str.setf(ios_base::skipws), then returns str.