$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2007-01-30 19:31:44
Hi,
I am trying to Boost::for_each function to set a local variable if all
elements in this is DEFAULT type.
Here is my code, but I don't know how to implement the last part of
the if_then call.
boolean rtnValue = false;
for_each(mylist.begin(), mylist.end(), if_then(
bind(&ListItem::getType, _1) == DEFAULT, set the local value to true
if true if all of them are DEFAULT type ));
if you can give me some pointers, I will be appreciated.
Thank you.