Skip to content

Commit a1f16d7

Browse files
committed
Added clear() instruction
1 parent 1f870ee commit a1f16d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Items on the list can be removed:
2626
- always check if index is in valid range before you try to clear item
2727
*/
2828
list.clear(index);
29+
30+
list.clear(); // This removes ALL items from list
2931
```
3032
Items on the list can accessed:
3133
``` C++

0 commit comments

Comments
 (0)