All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
sortBy.h File Reference

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.

Namespaces

 util
 Namespace for general, non-LArSoft-specific utilities.
 
 util::details
 

Functions

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...
 

Variables

template<typename Iter >
constexpr bool util::details::is_random_access_iterator_v
 

Detailed Description

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.