Extension point yielding an order-preserving reinsertion view of a container.
Declared in <folly/container/View.h>
struct order_preserving_reinsertion_view_fn;
Provides an order such that if entries are inserted into a new instance in that order, iteration order of the new instance matches the original's. This can be useful for containers that have defined but non-FIFO iteration order, such as F14Vector*.
Should return an iterable view (a type that provides begin() and end()).
Containers should provide overloads via tag-invoke.
| Name | Description |
|---|---|
operator() | Returns the order-preserving reinsertion view for container. |
| Name | Description |
|---|---|
tag_invoke | Returns a range that enumerates the set in order-preserving reinsertion order. |
tag_invoke | Returns a range that enumerates the set in order-preserving reinsertion order. |
tag_invoke | Returns a range that enumerates the map in order-preserving reinsertion order. |