$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: chun ping wang (cablepuff_at_[hidden])
Date: 2006-04-26 11:53:58
K the question is simple. How do i do iterator swap with lambda.
lets say i have vector of U.
vector<U> vecU;
typedef vector<U>::iterator iter;
iter beg(vecU.begin());
for_each(vec.begin(), vec.end(),
(
if_(_1 == *beg)
[
// swap the iterator between the current one and begin.
]
)
);