It's a manipulator for an input stream. This means that by using that before calling getline for your inputting, you tell that (in this case) all whitespace should be ignored up to the point where the first non-whitespace character is encountered.
Inputting this:
1 2
LOLOL LOL!
// Note the whitespaces at the start
Would thus return:
1 2
LOLOL LOL!
// Note that the whitespace in the middle is still there