5 #ifndef ICE_UTIL_ITERATOR_H
6 #define ICE_UTIL_ITERATOR_H
10 namespace IceUtilInternal
13 template<
class ForwardIterator>
14 inline typename ForwardIterator::difference_type
15 distance(ForwardIterator first, ForwardIterator last)
20 #if defined(__SUNPRO_CC) && defined(_RWSTD_NO_CLASS_PARTIAL_SPEC)
22 ForwardIterator::difference_type result = 0;
23 std::distance(first, last, result);
26 return ::std::distance(first, last);