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