|
|
От: |
WeCom
|
|
| Дата: | 28.03.02 09:22 | ||
| Оценка: | |||
#include <vector>
#include <functional>
#include <algorithm>
using namespace std;
class A
{
public:
int Func1(int i){ return 0; }
};
int main(int argc, char* argv[])
{
vector<A> v;
for_each(v.begin(),v.end(),bind2nd(mem_fun1_ref( A::Func1 ),10) );
return 0;
}