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