X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Falgorithm.h;fp=source%2Fcore%2Falgorithm.h;h=268bf7b89f9ca54ac56ae6ff7d51e4f2fbfb64cc;hp=b79114e9d7a8de906b7be40e4c684e1a9758280a;hb=31ab69904294bcbc0f38e4d401fcca620f7c6f61;hpb=8223c2aabe26469b6c580a223555496c5c5c5df5 diff --git a/source/core/algorithm.h b/source/core/algorithm.h index b79114e..268bf7b 100644 --- a/source/core/algorithm.h +++ b/source/core/algorithm.h @@ -171,6 +171,12 @@ inline void stable_sort_member(Container &cont, T Container::value_type::*mp) stable_sort(cont, MemberCompare(mp)); } +template +inline void transform(Container &cont, Predicate pred) +{ + transform(cont.begin(), cont.end(), cont.begin(), pred); +} + } // namespace Msp #endif