Moving from algo back to std.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@238 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-01-27 20:52:59 +00:00
parent 74b154f07e
commit f9b95c6255
18 changed files with 56 additions and 1279 deletions
+4 -7
View File
@@ -1,18 +1,15 @@
#include "config.h"
#include <stdexcept>
#include <algo/call.h>
#include <algo/entry.h>
#include <algo/lambda.h>
#include <algorithm>
#include <functional>
#include "canvas.h"
#include "manager.h"
#include "window_base.h"
#include "window.h"
namespace display {
using namespace algo;
void
Manager::adjust_layout() {
adjust_row(begin(), end(), 0, 0, display::Canvas::get_screen_width(), display::Canvas::get_screen_height());
@@ -43,7 +40,7 @@ Manager::adjust_row(iterator bItr, iterator eItr, int x, int y, int w, int h) {
void
Manager::do_update() {
std::for_each(begin(), end(), mem_fun(*mem_fun(_0(), &WindowBase::get_canvas), &Canvas::refresh));
std::for_each(begin(), end(), std::mem_fun_ref(&ManagerElement::redraw));
Canvas::do_update();
}