how to import getline in c++

C++
//getline definition
istream& getline (istream& is, string& str, char delim);

Source

Also in C++: