23 #include <boost/bind/protect.hpp> 29 using namespace boost;
38 struct Cont :
public boost::intrusive::list_base_hook<> {
53 template<
class Function>
59 template<
class Function>
63 for (BufferType::iterator it = mlist.begin(); it != mlist.end(); ++it)
85 typedef boost::shared_ptr<double*> dsp;
93 std::for_each (mlist.begin(), mlist.end(), boost::bind( &ListTestSuite::test_apply::mcfoo,
this, _1) );
101 apply( boost::bind(&
foo,_1) );
106 typedef boost::shared_ptr<double*> dsp;
110 lld.
apply( boost::bind(
foo, _1 ) );
#define BOOST_FIXTURE_TEST_SUITE(suite_name, F)
void cfoo(ListTest::Cont &c)
#define BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(test_instatiation)
void apply(Function func)
value_t find_if(Function func, value_t blank=value_t())
static void apply_item(Function func, Cont &c)
boost::intrusive::list< Cont > BufferType
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
void apply(Function func)