* 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:
rakshasa
2006-07-26 21:41:09 +00:00
parent ef90f0f51e
commit fc76a11d71
41 changed files with 889 additions and 471 deletions
+9
View File
@@ -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>