Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSequence.h189 template <typename T, bool IsReverse> struct SafeIntIterator { struct
197 explicit SafeIntIterator(T Value) : SI(CheckedInt::from<T>(Value)) {} in SafeIntIterator() argument
199 SafeIntIterator(const SafeIntIterator<T, !IsReverse> &O) : SI(O.SI) {} in SafeIntIterator() function
207 bool operator==(const SafeIntIterator &O) const { return SI == O.SI; }
220 SafeIntIterator operator++(int) {
225 SafeIntIterator operator--(int) { argument
240 intmax_t operator-(const SafeIntIterator &O) const {
245 SafeIntIterator(const CheckedInt &SI) : SI(SI) {} in SafeIntIterator() argument
258 template <typename, bool> friend struct SafeIntIterator; argument
267 using iterator = detail::SafeIntIterator<value_type, false>;
[all …]
/llvm-project-15.0.7/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()