От: | Alexander Pazdnikov | ||
Дата: | 03.07.08 10:39 | ||
Оценка: |
void BinFunc(int elemNum, int elemVal)
{
....
}
vector<int> v(10)
for_each(v.begin(), v.end(),
bind(BinFun,
bind(distance, v.begin(), _1)) + 1);
for_each(v.begin, v.end, _1 = distance(v.begin, _1));