LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
makeValueIndex.h File Reference

Provides util::makeValueIndex() helper function. More...

#include "larcorealg/CoreUtils/DebugUtils.h"
#include "larcorealg/CoreUtils/enumerate.h"
#include "larcorealg/CoreUtils/fromFutureImport.h"
#include <cstddef>
#include <map>
#include <stdexcept>
#include <string>
#include <type_traits>

Go to the source code of this file.

Namespaces

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

Functions

template<typename Coll , typename Extractor >
decltype(auto) util::makeValueIndex (Coll const &coll, Extractor getter)
 Returns a map of value to index. More...
 
template<typename Coll >
auto util::makeValueIndex (Coll const &coll)
 

Detailed Description

Provides util::makeValueIndex() helper function.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
April 24, 2019

This is a header-only library.

This utility belongs to the same cetegory as util::MakeIndex(), but that one is definded in lardataalg and we need this one for geometry.

Definition in file makeValueIndex.h.