MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / Accumulator

Class Accumulator

src/statTimer/statisticalTimer.CPU.cpp:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63// Functor object to help with accumulating values in vectors
64template< typename T >
65struct 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected