
Konstantin Litvinenko wrote:
Hello, Thorsten! You wrote on Wed, 07 Jun 2006 00:58:55 +0200:
TO> If you're not afraid of using the main cvs, I can update that.
I use 1.33.1 and can't switch to main trunc.
TO> Do you agree that for ptr_set/ptr_map the return value should be TO> single object transfer: std::pair
Why not std::pair
as std::set/std::map return? TO> multi object transfer: std::pair
May be only size_type?
Why do you need the iterator for single element transfer, but not for multi element transfer?
TO> and for ptr_multiset/ptr_multimap the return value should be the same TO> too?
I think for these two should be
single object transfer: iterator // this operation always insert key/value pair multi object transfer: void // this operation always insert all key/value pairs
I have come to dislike variations in return-type, even for different containers. It makes them less interchangeable. Do you disagree? -Thorsten