next up previous contents index
Next: String Output Streams ( Up: Simple Data Types and Previous: File Output Streams (   Contents   Index

String Input Streams ( string_istream )


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.

#include < LEDA/system/stream.h >


string_istream I(const char* s) creates an instance I of type string_istream connected to the string s.


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