Added linked_list_t.has_more which checks if any elements follow an enumerator's current position.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user