---
title: isValid
framework: kernel
role: pseudoSymbol
path: kernel/ositerator/1808063-isvalid
---

# isValid

Check that the collection hasn't been modified during iteration.

## Declaration

```occ
virtual bool isValid() = 0; 
```

## Return Value

Return Value true if the iterator is valid for continued use, false otherwise (typically because the collection being iterated has been modified).

## Overview

Overview Subclasses must implement this pure virtual member function.

## See Also

### Miscellaneous

- [getNextObject](kernel/ositerator/1808048-getnextobject.md)
- [reset](kernel/ositerator/1808074-reset.md)
