mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 13:12:32 +00:00
Added changing of the file priorities.
Seperated the algorithm extensions from functional. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@326 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+3
-14
@@ -1,20 +1,9 @@
|
||||
#ifndef RTORRENT_FUNCTIONAL_H
|
||||
#define RTORRENT_FUNCTIONAL_H
|
||||
#ifndef RTORRENT_UTILS_FUNCTIONAL_H
|
||||
#define RTORRENT_UTILS_FUNCTIONAL_H
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace func {
|
||||
|
||||
template <typename Iterator, typename Ftor>
|
||||
inline void for_each(Iterator first, Iterator last, Ftor ftor) {
|
||||
Iterator tmp;
|
||||
|
||||
while (first != last) {
|
||||
tmp = first++;
|
||||
|
||||
ftor(*tmp);
|
||||
}
|
||||
}
|
||||
namespace utils {
|
||||
|
||||
template <typename Type, typename Ftor>
|
||||
struct _accumulate {
|
||||
|
||||
Reference in New Issue
Block a user