23 #ifndef Utilities_SumSecondFunction_h
24 #define Utilities_SumSecondFunction_h
30 template <
typename _Key,
typename _Value,
typename _BinaryOperation = std::plus<_Value> >
32 :
public std::binary_function< _Value,
33 std::pair<_Key, _Value>,
38 const std::pair<_Key, _Value>& entry )
const
40 return _BinaryOperation()(
value, entry.second );
46 #endif // Utilities_SumSecondFunction_h
const _Value operator()(const _Value &value, const std::pair< _Key, _Value > &entry) const