зеркало из https://github.com/mozilla/gecko-dev.git
Add |operator!=()| implementation, conditioned on HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL. r=scc
This commit is contained in:
Родитель
ffd3579926
Коммит
2831f7bd1b
|
@ -393,7 +393,8 @@ operator==( const nsReadingIterator<CharT>& lhs, const nsReadingIterator<CharT>&
|
||||||
{
|
{
|
||||||
return lhs.operator->() == rhs.operator->();
|
return lhs.operator->() == rhs.operator->();
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
|
#ifdef HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
|
||||||
template <class CharT>
|
template <class CharT>
|
||||||
inline
|
inline
|
||||||
PRBool
|
PRBool
|
||||||
|
|
|
@ -364,6 +364,16 @@ operator==( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>&
|
||||||
return lhs.operator->() == rhs.operator->();
|
return lhs.operator->() == rhs.operator->();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
|
||||||
|
template <class CharT>
|
||||||
|
inline
|
||||||
|
PRBool
|
||||||
|
operator!=( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>& rhs )
|
||||||
|
{
|
||||||
|
return lhs.operator->() != rhs.operator->();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -393,7 +393,8 @@ operator==( const nsReadingIterator<CharT>& lhs, const nsReadingIterator<CharT>&
|
||||||
{
|
{
|
||||||
return lhs.operator->() == rhs.operator->();
|
return lhs.operator->() == rhs.operator->();
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
|
#ifdef HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
|
||||||
template <class CharT>
|
template <class CharT>
|
||||||
inline
|
inline
|
||||||
PRBool
|
PRBool
|
||||||
|
|
|
@ -364,6 +364,16 @@ operator==( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>&
|
||||||
return lhs.operator->() == rhs.operator->();
|
return lhs.operator->() == rhs.operator->();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
|
||||||
|
template <class CharT>
|
||||||
|
inline
|
||||||
|
PRBool
|
||||||
|
operator!=( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>& rhs )
|
||||||
|
{
|
||||||
|
return lhs.operator->() != rhs.operator->();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -393,7 +393,8 @@ operator==( const nsReadingIterator<CharT>& lhs, const nsReadingIterator<CharT>&
|
||||||
{
|
{
|
||||||
return lhs.operator->() == rhs.operator->();
|
return lhs.operator->() == rhs.operator->();
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
|
#ifdef HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
|
||||||
template <class CharT>
|
template <class CharT>
|
||||||
inline
|
inline
|
||||||
PRBool
|
PRBool
|
||||||
|
|
|
@ -364,6 +364,16 @@ operator==( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>&
|
||||||
return lhs.operator->() == rhs.operator->();
|
return lhs.operator->() == rhs.operator->();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL
|
||||||
|
template <class CharT>
|
||||||
|
inline
|
||||||
|
PRBool
|
||||||
|
operator!=( const nsWritingIterator<CharT>& lhs, const nsWritingIterator<CharT>& rhs )
|
||||||
|
{
|
||||||
|
return lhs.operator->() != rhs.operator->();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Загрузка…
Ссылка в новой задаче