类型萃取，统一迭代器类型和裸指针。相关博客： http://www.cppblog.com/woaidongmao/archive/2008/09/15/61855.html