Adding Heterogenous comparison lookups to associative containers.

In this patch:
* Marking the comparison functions as transparent (thanks Zhihao!)
* Updating the synopsis in <set>
* Defining the four template functions (find, equal_range, upper_bound, and 
lower_bound) in set/multiset
* enable_if-ing them for transparent comparison functions.
* added a utility class named "PrivateConstructor" to test these things.
* Tests. Lots of guns - I mean tests.

Howard has already suggested an enhancement to the enable if to deal with the 
case where there's an implicit conversion from the key type being passed to 
find() and the key type of the container. This should work in C++11, and it 
would be nice if it continued to work.

Still to do: map and multi-map.

-- Marshall

Marshall Clow     Idio Software   <mailto:[email protected]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly 
moderated down to (-1, Flamebait).
        -- Yu Suzuki

Attachment: n3657-1.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to