• Tobias Hunger's avatar
    Algorithm: Add partition functions · 7d4078b9
    Tobias Hunger authored
    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: default avatarEike Ziller <eike.ziller@theqtcompany.com>
algorithm.h 11.6 KB