String getline

Hello all!
I know that it is possible to use "cin.getline();" for C style strings, but I am not aware of how to do this with C++ style strings. Does anyone know what the relevant function is?
Thanks in advance for your time!
Topic archived. No new replies allowed.