$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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> http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2002/n1403.pdf
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 :)