X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Falgorithm.h;h=69ec390908793a7e299cba81115b30c93e68cc79;hp=5d75763d2617697fcf3b009e587ce84a4b327a42;hb=b584abc28a1a09190b555359fd3f2f406d9d6788;hpb=71be32fe7248a7d2df7dea4e18c5ebd30fd73d4b diff --git a/source/core/algorithm.h b/source/core/algorithm.h index 5d75763..69ec390 100644 --- a/source/core/algorithm.h +++ b/source/core/algorithm.h @@ -6,25 +6,25 @@ namespace Msp { template -typename Container::iterator find(Container &cont, const T &value) +inline typename Container::iterator find(Container &cont, const T &value) { return std::find(cont.begin(), cont.end(), value); } template -typename Container::const_iterator find(const Container &cont, const T &value) +inline typename Container::const_iterator find(const Container &cont, const T &value) { return std::find(cont.begin(), cont.end(), value); } template -typename Container::iterator find_if(Container &cont, Predicate pred) +inline typename Container::iterator find_if(Container &cont, Predicate pred) { return std::find_if(cont.begin(), cont.end(), pred); } template -typename Container::const_iterator find_if(const Container &cont, Predicate pred) +inline typename Container::const_iterator find_if(const Container &cont, Predicate pred) { return std::find_if(cont.begin(), cont.end(), pred); }