| 33 | // Functor object to help with accumulating values in vectors |
| 34 | template< typename T > |
| 35 | struct Accumulator: public std::unary_function< T, void > |
| 36 | { |
| 37 | T acc; |
| 38 | |
| 39 | Accumulator( ): acc( 0 ) {} |
| 40 | void operator( )(T x) { acc += x; } |
| 41 | }; |
| 42 | |
| 43 | // Unary predicate used for remove_if() algorithm |
nothing calls this directly
no outgoing calls
no test coverage detected