ptr_container: ptr_map_adapter interface

26 Dec
2005
26 Dec
'05
3:41 a.m.
Hello, I've been using ptr_map lately and have a few questions regarding its interface. Below is a signature of `insert' function as declared in ptr_map_adapter: std::pair<iterator,bool> insert( key_type& k, value_type x ); Why is `k' a non-const reference? To imply ownership transfer, couldn't `x' be of `std::auto_ptr<value_type>' type instead? What happend to std::pair as an argument of insert? Was symmetry with std::map dropped for a reason here? Cheers, Slawomir Lisznianski
7107
Age (days ago)
7107
Last active (days ago)
0 comments
1 participants
participants (1)
-
Slawomir Lisznianski