Remove use of std::iterator

(Deprecated in C++17.)
This commit is contained in:
Desour 2023-06-12 18:53:06 +02:00 committed by sfan5
parent cbc7aeb302
commit 8c856408f5

@ -429,24 +429,19 @@ public:
//! Iterator to iterate through a UTF-16 string.
class _ustring16_const_iterator : public std::iterator<
std::bidirectional_iterator_tag, // iterator_category
access, // value_type
ptrdiff_t, // difference_type
const access, // pointer
const access // reference
>
class _ustring16_const_iterator
{
public:
typedef _ustring16_const_iterator _Iter;
typedef std::iterator<std::bidirectional_iterator_tag, access, ptrdiff_t, const access, const access> _Base;
typedef const access const_pointer;
typedef const access const_reference;
typedef ptrdiff_t distance_type;
typedef typename _Base::value_type value_type;
typedef typename _Base::difference_type difference_type;
typedef typename _Base::difference_type distance_type;
typedef typename _Base::pointer pointer;
// stuff for std::iterator_traits
typedef std::bidirectional_iterator_tag iterator_category;
typedef access value_type;
typedef distance_type difference_type;
typedef const access pointer;
typedef const_reference reference;
//! Constructors.