next up previous contents
Next: String Output Streams (string_ostream) Up: Simple Data Types and Previous: File Output Streams (file_ostream)

   
String Input Streams (string_istream)

Definition

An instance I of the data type string_istream is an C++istream connected to a string s, i.e., all input operations or operators applied to I read from s.

Creation

string_istream I(string s); creates an instance I of type string_istream connected to the string s.

   

Operations

All operations and operators (>>) defined for C++istreams can be applied to string input streams as well.



LEDA research project
1998-10-02