Added linked_list_t.has_more which checks if any elements follow an enumerator's current position.

This commit is contained in:
Tobias Brunner
2011-07-06 09:43:46 +02:00
parent 2bf9d39da6
commit 1142726ba0
2 changed files with 19 additions and 0 deletions
+8
View File
@@ -77,6 +77,14 @@ struct linked_list_t {
*/
void (*reset_enumerator)(linked_list_t *this, enumerator_t *enumerator);
/**
* Checks if there are more elements following after the enumerator's
* current position.
*
* @param enumerator enumerator to check
*/
bool (*has_more)(linked_list_t *this, enumerator_t *enumerator);
/**
* Inserts a new item at the beginning of the list.
*