| 55 | // Functor object to help with accumulating values in vectors |
| 56 | template< typename T > |
| 57 | struct Accumulator: public std::unary_function< T, void > |
| 58 | { |
| 59 | T acc; |
| 60 | |
| 61 | Accumulator( ): acc( 0 ) {} |
| 62 | void operator( )(T x) { acc += x; } |
| 63 | }; |
| 64 | |
| 65 | // Functor object to help with accumulating values in vectors |
nothing calls this directly
no outgoing calls
no test coverage detected