| 64 | // Functor object to help with accumulating values in vectors |
| 65 | template< typename T > |
| 66 | struct Accumulator: public std::unary_function < T, void > |
| 67 | { |
| 68 | T acc; |
| 69 | |
| 70 | Accumulator( ): acc( 0 ) {} |
| 71 | void operator( )( T x ) { acc += x; } |
| 72 | }; |
| 73 | |
| 74 | // Unary predicate used for remove_if() algorithm |
nothing calls this directly
no outgoing calls
no test coverage detected