LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
util::SumSecondFunction< _Key, _Value, _BinaryOperation > Struct Template Reference

#include "SumSecondFunction.h"

Public Member Functions

_Value operator() (const _Value &value, const std::pair< _Key, _Value > &entry) const
 

Detailed Description

template<typename _Key, typename _Value, typename _BinaryOperation = std::plus<_Value>>
struct util::SumSecondFunction< _Key, _Value, _BinaryOperation >

Definition at line 31 of file SumSecondFunction.h.

Member Function Documentation

template<typename _Key , typename _Value , typename _BinaryOperation = std::plus<_Value>>
_Value util::SumSecondFunction< _Key, _Value, _BinaryOperation >::operator() ( const _Value &  value,
const std::pair< _Key, _Value > &  entry 
) const
inline

Definition at line 32 of file SumSecondFunction.h.

References value.

33  {
34  return _BinaryOperation{}(value, entry.second);
35  }
double value
Definition: spectrum.C:18

The documentation for this struct was generated from the following file: