Algorithm: Add partition functions
These take a container and a predicate and return a Partition
struct with the hit and miss fields. Any element in the original
container will end up in either hit or miss, depending on whether
the predicate returned true for the element or not.
Change-Id: Ia02cd704d6fe1388dc677308440acc48f7c9c1e1
Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
Showing
Please register or sign in to comment