Extension point yielding an order‐preserving reinsertion view of a container.
Synopsis
Declared in <folly/container/View.h>
struct order_preserving_reinsertion_view_fn;
Description
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.
Member Functions
Name |
Description |
Returns the order‐preserving reinsertion view for |
Non-Member Functions
Name |
Description |
Returns a range that enumerates the set in order‐preserving reinsertion order. |
|
Returns a range that enumerates the set in order‐preserving reinsertion order. |
|
Returns a range that enumerates the map in order‐preserving reinsertion order. |
Created with MrDocs