From: "Martin Bosticky" <[EMAIL PROTECTED]>
[...]
> Example:
>
> struct Option
> {
> string m_Name;
> string m_OptionParameters;
> };
>
> vector<Option> AVector_vec;
> ...
>
> // Find the preffered option
> vector<Option>::iterator AVector_it =
> find_if
> (
> AVector.begin(),
> AVector.end(),
> //
> // Identify when Option.vm_Member == "c"
> bind1st(adapt2ndArgument<Option>(equal_to<string>(),
&Option::m_Name),
> "c")
bind<bool>(equal_to<string>(), bind(&Option::m_Name, _1), "c")
> );
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost