(c++) I'm curious of the implementation of std::getline() : I'm reading a .txt file with using std::getline.
I coded like this, and I became so much curious of the return value of std::getline().

(file is an ifstream variable.)

	while(!file.eof())
	{
		string line;
		getline(in,line);
		cout<<line<<endl;
	}

So, what I want to know is why getline can get all lines in the file.
Does getline have an iterator?
I want to know how it's file cursor moves.