Subscribe to 10 GOTO 10        RSS Feed
- - - - -

ios_base::xalloc and iostream

Icon 3 Comments
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:

...

Page 1 of 1

July 2014

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
27282930 31   

Recent Entries

Search My Blog

9 user(s) viewing

9 Guests
0 member(s)
0 anonymous member(s)