template<class T> void delete_pointer( T* obj );
Nothing
Deletes the given argument.
vector<int*> numbers; numbers.push_back( new int(1) ); numbers.push_back( new int(2) ); ... // free allocated memory for elements in container apply( numbers, delete_pointer<int> );