mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-23004 ssize_t less portable than std::ptrdiff_t?
This commit is contained in:
parent
adcf6f63cc
commit
ac4f23aa20
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ public:
|
|||
typedef Unit value_type;
|
||||
typedef Unit &reference;
|
||||
typedef Unit *pointer;
|
||||
typedef ssize_t difference_type;
|
||||
typedef std::ptrdiff_t difference_type;
|
||||
// This is a LegacyIterator but there is no specific category for that,
|
||||
// so we claim it to be a LegacyInputIterator. It *is* single-pass.
|
||||
typedef std::input_iterator_tag iterator_category;
|
||||
|
@ -179,7 +179,7 @@ public:
|
|||
typedef Unit value_type;
|
||||
typedef Unit &reference;
|
||||
typedef Unit *pointer;
|
||||
typedef ssize_t difference_type;
|
||||
typedef std::ptrdiff_t difference_type;
|
||||
// https://en.cppreference.com/w/cpp/named_req/ForwardIterator#Multi-pass_guarantee
|
||||
typedef std::forward_iterator_tag iterator_category;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue