diff options
Diffstat (limited to 'include/list.h')
-rw-r--r-- | include/list.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/list.h b/include/list.h index 55377b4..902a39c 100644 --- a/include/list.h +++ b/include/list.h @@ -33,13 +33,13 @@ /* Return a const pointer which point to the entry */ /* at the end of the list. */ /* */ -/* getFirst(addr of the list) */ +/* getBegin(addr of the list) */ /* Return a pointer which point to the iterator at */ /* the head of the list. */ /* */ -/* getLast(addr of the list) */ +/* getEnd(addr of the list) */ /* Return a pointer which point to the iterator at */ -/* the end of the list. */ +/* the end of the list (which cannot be modified). */ /* */ /* */ /* setSize(addr of the list, new_size) */ @@ -73,9 +73,15 @@ /* Remove the part of iter1 ~ iter2 (include iter1 */ /* but not iter2) */ /* */ -/* cutout(addr of the list, addr of the iter1, iter2) */ +/* copy(addr of the list, addr of the iter1, iter2, */ +/* addr of the list2) */ /* Create a new list which contain the part of the */ -/* iter1 ~ iter2 (include iter1 but not iter2) */ +/* iter1 ~ iter2 (include iter1 but not iter2) and */ +/* saved it to list2. */ +/* */ +/* move(addr of the list, addr of the iter1, iter2, */ +/* addr of the list2) */ +/* Move the part iter1 ~ iter2 to list2. */ /* */ /* swap(addr of the l1, addr of the iter. i1, i2, */ /* addr of the l2, addr of the iter. j1, j2) */ |