Test satisfaction of the invariant, while initializing, incrementing, or decrementing
| 656 | |
| 657 | //! Test satisfaction of the invariant, while initializing, incrementing, or decrementing |
| 658 | bool valid() const |
| 659 | { |
| 660 | // assume mIter != mEnd |
| 661 | const auto pTrack = track_cast< TrackType * >( &**this->mIter ); |
| 662 | if (!pTrack) |
| 663 | return false; |
| 664 | return !this->mPred || this->mPred( pTrack ); |
| 665 | } |
| 666 | |
| 667 | //! This friendship is needed in TrackIterRange::StartingWith and TrackIterRange::EndingAfter() |
| 668 | friend TrackIterRange< TrackType >; |
no outgoing calls
no test coverage detected