Home
last modified time | relevance | path

Searched refs:SafeIntIterator (Results 1 – 2 of 2) sorted by relevance

/llvm-project/llvm/include/llvm/ADT/
H A DSequence.h188 template <typename T, bool IsReverse> struct SafeIntIterator { struct
196 explicit SafeIntIterator(T Value) : SI(CheckedInt::from<T>(Value)) {} in SafeIntIterator() argument
198 SafeIntIterator(const SafeIntIterator<T, !IsReverse> &O) : SI(O.SI) {} in SafeIntIterator() function
206 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 …]
/llvm-project/llvm/unittests/ADT/
H A DSequenceTest.cpp90 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()