mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02:30 +00:00
* UI refactoring, added display::Frame and started cleaning up the
code. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@747 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -56,6 +56,15 @@ for_each_pre(_InputIter __first, _InputIter __last, _Function __f) {
|
||||
return __f;
|
||||
}
|
||||
|
||||
template <typename InputIter, typename Function, typename Accumulator>
|
||||
Accumulator
|
||||
accumulate(InputIter first, InputIter last, Function function, Accumulator acc) {
|
||||
while (first != last)
|
||||
acc += function(*first++);
|
||||
|
||||
return acc;
|
||||
}
|
||||
|
||||
// Return a range with a distance of no more than __distance and
|
||||
// between __first and __last, centered on __middle1.
|
||||
template <typename _InputIter, typename _Distance>
|
||||
|
||||
Reference in New Issue
Block a user