ScopedPtrMap: Added Compare template parameter.
commit24486e2517f5bbb84bc79aa908d81ec6eb34d676
authormgiuca <mgiuca@chromium.org>
Tue, 16 Jun 2015 03:30:10 +0000 (15 20:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Jun 2015 03:30:37 +0000 (16 03:30 +0000)
tree2003f64c12b7efef8a05a21e9b12463f2cfac675
parent31cda26970725dbe9e7450e908887c828cd49735
ScopedPtrMap: Added Compare template parameter.

Allows clients to specify a custom comparison function (as in std::map).

Also added |mapped_type| and |key_compare| typedefs in ScopedPtrMap, for
compatibility with std::map.

BUG=478594

Review URL: https://codereview.chromium.org/1179083006

Cr-Commit-Position: refs/heads/master@{#334549}
base/containers/scoped_ptr_map.h
base/containers/scoped_ptr_map_unittest.cc