[Scummvm-git-logs] scummvm master -> 88062119f974607134f9f863adc4ddba7d5dd445
grisenti
noreply at scummvm.org
Thu Jun 1 21:19:56 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
88062119f9 COMMON: Fix documentation for lower/upperBound
Commit: 88062119f974607134f9f863adc4ddba7d5dd445
https://github.com/scummvm/scummvm/commit/88062119f974607134f9f863adc4ddba7d5dd445
Author: grisenti (emanuele at grisenti.net)
Date: 2023-06-01T23:18:12+02:00
Commit Message:
COMMON: Fix documentation for lower/upperBound
Changed paths:
common/algorithm.h
diff --git a/common/algorithm.h b/common/algorithm.h
index 558556e0c40..925e45dc12b 100644
--- a/common/algorithm.h
+++ b/common/algorithm.h
@@ -415,8 +415,8 @@ It remove(It first, It last, const T& val) {
}
/**
- * Finds the first item in the range [first, last) for which comp(item, val)
- * (item < val by default) is false.
+ * Returns an iterator to the first item in the range [first, last) for which comp(item, val)
+ * (item < val by default) is false, or last if no such item is found.
* Items in the range [first, last) need to be partitioned by comp(item, val), that is,
* all items for which comp(item, val) is true (items that are less than val)
* come before all items for which the expression is false (items that are bigger than or
@@ -437,8 +437,8 @@ RandomIt lowerBound(RandomIt first, RandomIt last, const V &val, Comp comp = {})
}
/**
- * Finds the first item in the range [first, last) for which comp(val, item)
- * (val < item by default) is true.
+ * Returns an iterator to the first item in the range [first, last) for which comp(val, item)
+ * (val < item by default) is true, or last if no such item is found.
* Items in the range [first, last) need to be partitioned by !comp(val, item), that is,
* all items for which !comp(val, item) is true (items that are less than or equal to val),
* come before all items for which the expression is false (items that are greater than val).
More information about the Scummvm-git-logs
mailing list