$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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