Over the years I have written a few stream manipulators and one thing that has kind of confounded me is a way to save persistent information for each stream. Well today I found a way.
Lets take a really simple example. You would like to add line numbers your output lines. Simple enough to do with a static variable and a manipulator:
Lets take a really simple example. You would like to add line numbers your output lines. Simple enough to do with a static variable and a manipulator:
...
Page 1 of 1
Tags
My Blog Links
Recent Entries
Recent Comments
Search My Blog
0 user(s) viewing
0 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)
|
|


3 Comments


|