Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e30ae74

Browse files
andy31415tcarmelveilleux
andauthoredJan 8, 2025··
Update src/app/AttributePathExpandIterator.h
Co-authored-by: Tennessee Carmel-Veilleux <tennessee.carmelveilleux@gmail.com>
1 parent a610782 commit e30ae74

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/app/AttributePathExpandIterator.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ class AttributePathExpandIterator
151151
bool IsValidAttributeId(AttributeId attributeId);
152152
};
153153

154-
/// Wraps around an AttributePathExpandIterator however it rolls back Next() to one
155-
/// step back whenever Next() is not run to completion (until it returns false)
154+
/// PeekAttributePathExpandIterator is an AttributePathExpandIterator wrapper that rolls back the Next()
155+
/// call whenever a new `MarkCompleted()` method is not called (until Next() returns false). This is useful
156+
/// to allow pausing iteration in cases the next path was not ready to be used yet and iteration needs to
157+
/// continue later.
156158
///
157159
/// Example use cases:
158160
///

0 commit comments

Comments
 (0)
Please sign in to comment.