Searched refs:SafeIntIterator (Results 1 – 2 of 2) sorted by relevance
188 template <typename T, bool IsReverse> struct SafeIntIterator { struct196 explicit SafeIntIterator(T Value) : SI(CheckedInt::from<T>(Value)) {} in SafeIntIterator() argument198 SafeIntIterator(const SafeIntIterator<T, !IsReverse> &O) : SI(O.SI) {} in SafeIntIterator() function206 bool operator==(const SafeIntIterator &O) const { return SI == O.SI; }207 bool operator!=(const SafeIntIterator &O) const { return SI != O.SI; }209 bool operator<(const SafeIntIterator &O) const { return (*this - O) < 0; }210 bool operator>(const SafeIntIterator &O) const { return (*this - O) > 0; }211 bool operator<=(const SafeIntIterator &O) const { return (*this - O) <= 0; }212 bool operator>=(const SafeIntIterator &O) const { return (*this - O) >= 0; }219 SafeIntIterator operator++(int) {[all …]
90 detail::SafeIntIterator<int, false> Forward(0); in TEST()91 detail::SafeIntIterator<int, true> Reverse(0); in TEST()94 Forward = detail::SafeIntIterator<int, false>(0); in TEST()95 Reverse = detail::SafeIntIterator<int, true>(0); in TEST()304 detail::SafeIntIterator<int, false> begin(4); in TEST()305 detail::SafeIntIterator<int, false> end(6); in TEST()