SyTen

◆ addLog() [4/4]

template<typename Iterator , typename Function >
void syten::addLog ( Iterator  first,
Iterator  end,
Function &&  f,
std::size_t  threshold = 2,
std::size_t  avail_threads = 1 
)

Adds values in the range [first, end) using operator+=, the result is found in *first.

Whenever values of in a range larger than threshold have been summed, f is called on the result.

References abs(), addLog(), dist(), syten::MPS::distance(), std::distance(), std::max(), SYTEN_ASSERT, and syten::Caching::threshold.

+ Here is the call graph for this function: