修复iterator_traits的一个bug

This commit is contained in:
邹晓航
2014-09-22 13:07:14 +08:00
parent 74bf3e2ec7
commit 51df860f21

View File

@@ -64,11 +64,11 @@ namespace TinySTL{
template<class Iterator>
struct iterator_traits
{
typedef typename Iterator::Category iterator_category;
typedef typename Iterator::value_type value_type;
typedef typename Iterator::Distance difference_type;
typedef typename Iterator::Pointer pointer;
typedef typename Iterator::Reference reference;
typedef typename Iterator::iterator_category iterator_category;
typedef typename Iterator::value_type value_type;
typedef typename Iterator::difference_type difference_type;
typedef typename Iterator::pointer pointer;
typedef typename Iterator::reference reference;
};
template<class T>
struct iterator_traits<T*>