00001 #ifndef PTR_CONTAINER_ERASE_HPP_INCLUDED 00002 #define PTR_CONTAINER_ERASE_HPP_INCLUDED 00003 00004 #include <boost/lambda/lambda.hpp> 00005 00006 template<typename T,typename U> 00007 void ptr_container_erase(T &container,U const ptr) 00008 { 00009 container.erase_if(&boost::lambda::_1 == boost::lambda::constant(ptr)); 00010 } 00011 00012 #endif
1.5.5