haiku/docs/user/support
Adrien Destugues 4b0d8831c2 HaikuBook: better doc and example for BList::DoForEach
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>
2022-05-26 07:49:01 +00:00
..
Architecture.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
Archivable.dox API Docs: add various missing elements to support kit. 2019-09-19 21:57:13 +01:00
Autolock.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
Beep.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
BlockCache.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
BufferedDataIO.dox API Docs: add skeletons for BBufferedDataIO, BStringList and BStackOrHeapArray 2019-09-19 21:57:13 +01:00
BufferIO.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
DataIO.dox BPositionIO: Add {Read,Write}AtExactly() 2014-07-12 15:40:21 +02:00
DateTime.dox HaikuBook: Add skeleton for support/DateTime.h and support/Job.h. 2020-10-11 15:46:06 +00:00
Flattenable.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
Job.dox HaikuBook: Add skeleton for support/DateTime.h and support/Job.h. 2020-10-11 15:46:06 +00:00
List.dox HaikuBook: better doc and example for BList::DoForEach 2022-05-26 07:49:01 +00:00
Locker.dox API docs: it's => its fix 2017-11-09 13:23:55 -08:00
ObjectList.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
parsedate.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
Referenceable.dox BReferenceable docs: Fix a typo and one obvious mixup. 2015-08-02 23:19:07 +02:00
StackOrHeapArray.dox API Docs: add skeletons for BBufferedDataIO, BStringList and BStackOrHeapArray 2019-09-19 21:57:13 +01:00
StopWatch.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
String.dox BString: add support for move semantics with C++11 and up. 2021-09-08 07:07:36 +00:00
StringList.dox API Docs: add skeletons for BBufferedDataIO, BStringList and BStackOrHeapArray 2019-09-19 21:57:13 +01:00
support_intro.dox Big docs cleanup. 2013-02-07 02:01:19 -05:00
SupportDefs.dox HaikuBook: unichar was removed in hrev54953 2021-04-19 07:02:08 +01:00
TLS.dox Update Support Kit docs, add \since 2014-06-24 19:30:54 -04:00
TypeConstants.dox AppKit: BMessage Add/Find/Get/Has/ReplaceNodeRef 2020-09-10 17:18:09 +00:00
Url.dox HaikuBook: fix part of the warnings marked by Doxygen 2020-03-01 09:50:49 +00:00