
12 Jun
2008
12 Jun
'08
9:31 a.m.
Hello,
at the moment I'm reading the documentation from Phoenix. Now I have
read in the first pages that there are 2 possibilities to define a functor
1)
find_if(c.begin(), c.end(), arg1 % 2 == 1)
2)
struct is_odd_ {
template <typename ArgT>
struct result { typedef bool type; };
template <typename ArgT>
bool operator()(ArgT arg1) const
{ return arg1 % 2 == 1; }
};
function
6100
Age (days ago)
6100
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hansi