|
Boost : |
From: Slawomir Lisznianski (public_at_[hidden])
Date: 2005-12-25 22:41:07
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk