Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
An adapter to be able to use for_each on a member function of T stored in a container as T* (compare std::mem_fun_ref, to use for_each on a member function of T stored in a container as T ).
Use a container of boost::shared_ptr<T> instead.
#include <vector> |
#include <algorithm> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.