X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Falgorithm.h;h=51c2369d623b58790f4ca556018d0162cb96a185;hb=b5c1bea5084768c7382c376383032c1a6ea16803;hp=b79114e9d7a8de906b7be40e4c684e1a9758280a;hpb=6bb431a4fdd6b6437c25890a89627d206a9e52ac;p=libs%2Fcore.git diff --git a/source/core/algorithm.h b/source/core/algorithm.h index b79114e..51c2369 100644 --- a/source/core/algorithm.h +++ b/source/core/algorithm.h @@ -132,6 +132,7 @@ struct MemberCompare MemberCompare(T C::*p): mem_ptr(p) { } bool operator()(const C &obj, const T &v) { return obj.*mem_ptr(mp)); } +template +inline void transform(Container &cont, Predicate pred) +{ + transform(cont.begin(), cont.end(), cont.begin(), pred); +} + } // namespace Msp #endif