|
|
От: | Wody | |
| Дата: | 20.01.10 12:33 | ||
| Оценка: | |||
int x = something1;
int y = something2;
typedef boost::function2<void, int, int> F;
typedef std::list <F> Functions;
Function functs;
//добавили несколько функций-членов классов в functs (boost::bind):
for(Functions::iterator i = functs.begin(); i != functs.end(); ++i)
(*i)(x, y);