On 16/09/2015 20:24, Sam Kellett wrote:
Well, almost.
IMO, we need three things to make it perfect:
A. flat_set/map should have an additional template argument specifying the internal vector type (it can default to the current choice).
B. You should be able to move the whole container, as suggested.
C. The constructor should contain an assertion with a call to is_sorted()
kind regards
-Thorsten
Seems like a cool feature for several users. Create a ticket and I'll try to put it in the to-do list.
re a: so i guess the Allocator template parameter that's currently in flat_set/map will be swapped out for a Container one ala std::queue, right?
Nope, we need to maintain backwards compatibility. I don't know if making it an adaptor is the most needed feature. vector will be the case in 99'9%. Ion