Provides sortBy()
class of utilities.
More...
#include <algorithm>
#include <functional>
#include <vector>
#include <iterator>
#include <utility>
#include <type_traits>
Go to the source code of this file.
|
template<typename BIter , typename EIter , typename Key , typename Sorter = std::less<void>> |
auto | util::sortBy (BIter begin, EIter end, Key key, Sorter sorter={}) |
| Returns a vectors to pointers to coll elements, sorted by key . More...
|
|
template<typename Coll , typename Key , typename Sorter = std::less<void>> |
auto | util::sortCollBy (Coll &coll, Key key, Sorter sorter={}) |
| Returns a vectors to pointers to coll elements, sorted by key . More...
|
|
Provides sortBy()
class of utilities.
- Author
- Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
- Date
- April 3, 2020
This is a header-only library.
Definition in file sortBy.h.