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/?a=commitdiff_plain;h=b584abc28a1a09190b555359fd3f2f406d9d6788;p=libs%2Fcore.git 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); }