cutealien
0f7eb1f6e1
core::array search functions can now work with other template types.
...
Previously search functions only worked when called with the same type as the array elements had.
Which forced users sometimes to create dummy objects to be able to search for elements by another type.
linear_search and linear_reverse_search now work with any type for which <T>::operator== is implemented.
Similar binary_search now works when <T>::operator< is implemented in both directions (T < E and E < T).
Note: It might be possible to further improve binary_search so only one operator< is needed (I think STL managed that somehow).
So if someone likes a challenge - have a go at it! :-)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6398 dfc29bdd-3216-0410-991c-e03cc46cb475
2022-05-14 18:27:35 +00:00
..
2021-08-27 15:03:34 +00:00
2022-04-22 14:22:41 +00:00
2022-04-22 16:28:29 +00:00
2022-04-14 16:54:06 +00:00
2022-05-13 14:42:13 +00:00
2022-04-25 16:19:20 +00:00
2021-08-27 15:03:34 +00:00
2022-05-01 01:11:45 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-04-04 16:37:55 +00:00
2022-04-12 16:04:56 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-13 14:42:13 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-02-08 21:00:12 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-04-22 14:22:41 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-03-22 22:08:33 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-13 14:42:13 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-05 15:19:35 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-06 19:47:38 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-04-25 16:19:20 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-04-22 14:22:41 +00:00
2021-08-27 15:03:34 +00:00
2022-04-19 21:44:50 +00:00
2022-04-14 16:54:06 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-02 15:19:37 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-13 14:42:13 +00:00
2021-08-27 15:03:34 +00:00
2022-04-26 18:40:44 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-14 18:27:35 +00:00
2022-05-01 01:11:45 +00:00
2021-08-27 18:09:14 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-04-21 22:24:14 +00:00
2021-08-27 15:03:34 +00:00
2019-12-12 16:32:41 +00:00
2021-08-27 15:03:34 +00:00
2022-01-04 18:44:35 +00:00
2019-12-12 16:32:41 +00:00
2021-08-27 15:03:34 +00:00
2022-05-14 14:29:56 +00:00
2021-08-27 15:03:34 +00:00
2022-05-01 01:11:45 +00:00
2022-05-13 14:42:13 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-14 14:29:56 +00:00
2022-04-25 16:19:20 +00:00
2022-03-30 10:49:13 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-03-14 15:11:05 +00:00
2021-08-27 15:03:34 +00:00
2022-05-01 01:11:45 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-01-06 12:01:36 +00:00
2021-08-27 15:03:34 +00:00
2022-04-25 14:24:43 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-02 16:17:03 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-05-13 12:31:00 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2019-12-12 16:32:41 +00:00
2019-12-12 16:32:41 +00:00
2019-12-12 16:32:41 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-04-14 16:54:06 +00:00
2022-04-14 16:54:06 +00:00
2021-08-27 15:03:34 +00:00
2021-08-27 15:03:34 +00:00
2022-01-06 14:02:12 +00:00
2021-08-27 15:03:34 +00:00
2022-04-21 22:24:14 +00:00
2022-05-01 01:11:45 +00:00