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
In certain cases we know that a container is sorted. flat_map and flat_set would benefit if they can be initialized with a sorted container to save us calls to std::unique and std::sort.
This is currently possible by using modify_container as in:
In certain cases we know that a container is sorted.
flat_map
andflat_set
would benefit if they can be initialized with a sorted container to save us calls tostd::unique
andstd::sort
.This is currently possible by using
modify_container
as in:...but that's not initialization.
foo
can't be const in such an example.My thinking is to use a tag like:
Is there anything better?
The text was updated successfully, but these errors were encountered: