Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 1999-11-10 13:17:39


I think this is the consensus so far.

    - add template non-member functions for operator == and operator != for
shared_ptr that allow base/derived mixes
    - add template non-member functions for operator == and operator != for
shared_array that (of course) do not allow base/derived mixes
    - add a non-throwing swap member function for shared_ptr and
shared_array
    - add a specialization of std::swap for shared_ptr and shared_array
    - add a specialization of std::less for shared_ptr and shared_array

The specialization of swap improves the performance of some algorithms in
the standard library. The specialization of less allows associative
containers to work with objects of shared_ptr/shared_array type as keys.

By the way, I'd be happy to do work on some or all of these, if whoever's
maintaining this file now (Beman?) would like the help.

    -- Darin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk