diff options
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -490,9 +490,19 @@ namespace Bu | |||
490 | * the list. | 490 | * the list. |
491 | *@returns (const Link *) | 491 | *@returns (const Link *) |
492 | */ | 492 | */ |
493 | const Link *end() const | 493 | const iterator end() |
494 | { | 494 | { |
495 | return NULL; | 495 | return iterator( NULL, *this ); |
496 | } | ||
497 | |||
498 | /** | ||
499 | * Get an iterator pointing to a place just past the last item in | ||
500 | * the list. | ||
501 | *@returns (const Link *) | ||
502 | */ | ||
503 | const const_iterator end() const | ||
504 | { | ||
505 | return const_iterator( NULL, *this ); | ||
496 | } | 506 | } |
497 | 507 | ||
498 | /** | 508 | /** |