This isn't too useful (and there might be a standard STL that does this anyway), but this might make coding more convenient.
When you pass this object data, it uses sprintf to convert it to a string.
That basically would assign y the value of 5.Code:datastream x; x << 5; int y; x >> y;
You can use the indexing operators, cout it, cin to it... ifstream, ofstream...
Enjoy! Its not very complex, but it could be useful (if there is a built in one, please tell me so I can look it up)