Boost logo

Boost Users :

From: Victor A. Wagner, Jr. (vawjr_at_[hidden])
Date: 2003-09-05 11:39:57

I understand there is a tuple<> operator << which sorta does what we want,
maybe looking there would be helpful

At Friday 2003-09-05 05:09, you wrote:
>I've implemented the following, and tested it with ofstream, and char
>delimiters. It works quite nicely. As you can see it is parameterized on the
>stream type, iterator type and three delimiter types. The latter allows
>using non-char delimiters of mixed type, as long as operator<< is defined
>for each. Currently all args are copied, I'm not sure if this will be a
>limitation, but for my usage it is fine. I've used iterators rather than a
>container reference, because my second application of this facility was with
>a container of shared_ptr<T>. I was able to use Dave Abrahams
>boost::indirect_iterator_generator to be able to access the stored T's. See
>the example usage below.
>[bandwidth saver]

Victor A. Wagner Jr.
The five most dangerous words in the English language:
               "There oughta be a law"

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at