You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remake vector_set from inheritance from underlying container to aggregation
this makes it safer, as it disallows some of changes that could violate sorted contract
it also saves at least sizeof(void*) on most common comparators (due to empty struct optimization in compressed_pair)
con: it explicitly requires container class to follow vector API (almost all functions are exposed in vector_set)
to consider: remove non const front(), back(), at(), [] access.
Those are not safe either, left them only for compatibility
0 commit comments