|
Boost : |
From: Vadim Alexandrov (vadima_at_[hidden])
Date: 2005-06-22 15:59:03
Hi,
I am using boost::tuple to accumulate results of computations. I think,
supplying operator += (-=) as operator += for each member will be nice.
Example:
tuple< int, string> abc( 3, "abc" ), de( 2, "de");
abc += de;
assert( abc.get<0>() == 5 );
assert( abc.get<1>() == "abcde" );
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk