]> git.ipfire.org Git - thirdparty/vala.git/commit
glib-2.0: Add GenericArray.find_custom() as variant of find_with_equal_func()
authorCorentin Noël <corentin@elementary.io>
Tue, 3 Nov 2020 16:22:48 +0000 (17:22 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 5 Nov 2020 11:39:52 +0000 (12:39 +0100)
commitb02987bb4fed9ea3c0f338b130a4b3e36194042c
treee51a4f8313fdb4f1440c13cbcd8d032ef90c0407
parenta7b2eb60f0bf7189648fe58a801fff2bf096f9de
glib-2.0: Add GenericArray.find_custom() as variant of find_with_equal_func()

This allows the needle to be a different type as the actual element type.
The implementation of ArraySearchFunc<G,T> is more customizable this way.
vapi/glib-2.0.vapi