Searched refs:SafeIntIterator (Results 1 – 2 of 2) sorted by relevance
189 template <typename T, bool IsReverse> struct SafeIntIterator { struct197 explicit SafeIntIterator(T Value) : SI(CheckedInt::from<T>(Value)) {} in SafeIntIterator() function199 SafeIntIterator(const SafeIntIterator<T, !IsReverse> &O) : SI(O.SI) {} in SafeIntIterator() argument207 bool operator==(const SafeIntIterator &O) const { return SI == O.SI; }220 SafeIntIterator operator++(int) {225 SafeIntIterator operator--(int) { argument240 intmax_t operator-(const SafeIntIterator &O) const {245 SafeIntIterator(const CheckedInt &SI) : SI(SI) {} in SafeIntIterator() argument258 template <typename, bool> friend struct SafeIntIterator; argument267 using iterator = detail::SafeIntIterator<value_type, false>;[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()