23 #ifndef Utilities_SumSecondFunction_h 24 #define Utilities_SumSecondFunction_h 30 template <
typename _Key,
typename _Value,
typename _BinaryOperation = std::plus<_Value>>
32 _Value
operator()(
const _Value&
value,
const std::pair<_Key, _Value>& entry)
const 34 return _BinaryOperation{}(
value, entry.second);
40 #endif // Utilities_SumSecondFunction_h Namespace for general, non-LArSoft-specific utilities.
_Value operator()(const _Value &value, const std::pair< _Key, _Value > &entry) const