| 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 | { |
| 63 | } |
| 64 | void operator( )( T x ) |
| 65 | { |
| 66 | acc += x; |
| 67 | } |
| 68 | }; |
| 69 | |
| 70 | // Functor object to help with accumulating values in vectors |
nothing calls this directly
no outgoing calls
no test coverage detected