|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-07-26 09:28:35
Here's another idea for a "hello world" example. A rewrite of Matt
Austern's line_iterator example from his Generic Programming and the STL
book. The line_iterator call getline() and then return a std::string from
operator*.
On Fri, 26 Jul 2002, David Abrahams wrote:
dave>
dave> That's neat, but we already have the permutation adaptor, and I
dave> don't think it's really a simple enough example. Beman's example
dave> just makes a simple iterator, not an adaptor, and I think that's an
dave> important feature for a "hello, world"-type introduction.
dave>
dave> -Dave
----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk