From: Mikko Rasa Date: Sun, 25 Mar 2018 11:20:30 +0000 (+0300) Subject: Mark the functions in algorithm.h as inline X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=b584abc28a1a09190b555359fd3f2f406d9d6788;hp=71be32fe7248a7d2df7dea4e18c5ebd30fd73d4b Mark the functions in algorithm.h as inline --- 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); }