4b0d8831c2
The description of the callback function was still quite confusing. The main usage for the return argument from the callback function is not handling failures, but knowing wether the function did something in the list or not, and stopping the iteration if only one item was looked for. Add an example use of the function return value to implement a linear search in the list and remove the note about the function "failing", which is not what this parameter was meant to do (and I think that lead to the initial inversion of "true" and "false" values. Change-Id: If8cae8b8ee21ced2c899aef6033a89ab8dbf1621 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5339 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> |
||
---|---|---|
.. | ||
Architecture.dox | ||
Archivable.dox | ||
Autolock.dox | ||
Beep.dox | ||
BlockCache.dox | ||
BufferedDataIO.dox | ||
BufferIO.dox | ||
DataIO.dox | ||
DateTime.dox | ||
Flattenable.dox | ||
Job.dox | ||
List.dox | ||
Locker.dox | ||
ObjectList.dox | ||
parsedate.dox | ||
Referenceable.dox | ||
StackOrHeapArray.dox | ||
StopWatch.dox | ||
String.dox | ||
StringList.dox | ||
support_intro.dox | ||
SupportDefs.dox | ||
TLS.dox | ||
TypeConstants.dox | ||
Url.dox |