Boost logo

Boost :

From: Maxim Egorushkin (e-maxim_at_[hidden])
Date: 2003-10-05 10:06:14

Howard Hinnant wrote:

 HH> On Oct 5, 2003, at 10:07 AM, Maxim Egorushkin wrote:

??>> But I wonder, would it be more simple to define
??>> ostream& operator<<(ostream&, const the_map::value_type&);
??>> and print a map using
??>> copy(m.begin(), m.end(), ostream_iterator<the_map::value_type>(cout,
??>> "\n"));

HH> One easy way to do this would be to modify tuple I/O as described in:


HH> to operate on tuple-like types instead of just tuple types. Then once
HH> tuple is standardized (and put in namespace std), then I/O would just
HH> work for std::pair, and enjoy all the benefits of the tuple I/O
HH> manipulators.

Can't wait :)

Boost list run by bdawes at, gregod at, cpdaniel at, john at