|
| Order ()=default |
|
| Order (Selector selector) |
|
| Order (Selector selector, Comparer comparer) |
|
template<class Source , class Value , class Gen = Generator<Value, Source>> |
Gen | compose (GenImpl< Value, Source > &&source) const |
|
template<class Source , class Value , class Gen = Generator<Value, Source>> |
Gen | compose (const GenImpl< Value, Source > &source) const |
|
ResultGen | compose (const GenImpl< Value, Source > &source) const |
|
const Self & | self () const |
|
Self & | self () |
|
template<class Selector, class Comparer>
class folly::gen::detail::Order< Selector, Comparer >
Order - For ordering a sequence of values from a source by key. The key is extracted by the given selector functor, and this key is then compared using the specified comparator.
This type is usually used through the 'order' helper function, like:
auto closest = from(places) | orderBy([](Place& p) { return -distance(p.location, here); }) | take(10);
Definition at line 1039 of file Base-inl.h.