1 // Copyright Peter Dimov and David Abrahams 2002. Permission to copy,
2 // use, modify, sell and distribute this software is granted provided
3 // this copyright notice appears in all copies of the source. This
4 // software is provided "as is" without express or implied warranty,
5 // and with no claim as to its suitability for any purpose.
6 #ifndef GET_POINTER_DWA20021219_HPP
7 # define GET_POINTER_DWA20021219_HPP
13 // get_pointer(p) extracts a ->* capable pointer from p
15 template<class T> T * get_pointer(T * p)
20 // get_pointer(shared_ptr<T> const & p) has been moved to shared_ptr.hpp
22 template<class T> T * get_pointer(std::auto_ptr<T> const& p)
30 #endif // GET_POINTER_DWA20021219_HPP