1 #ifndef MSP_CORE_ALGORITHM_H_
2 #define MSP_CORE_ALGORITHM_H_
8 template<typename Container, typename T>
9 typename Container::iterator find(Container &cont, const T &value)
11 return std::find(cont.begin(), cont.end(), value);
14 template<typename Container, typename T>
15 typename Container::const_iterator find(const Container &cont, const T &value)
17 return std::find(cont.begin(), cont.end(), value);
20 template<typename Container, typename Predicate>
21 typename Container::iterator find_if(Container &cont, Predicate pred)
23 return std::find_if(cont.begin(), cont.end(), pred);
26 template<typename Container, typename Predicate>
27 typename Container::const_iterator find_if(const Container &cont, Predicate pred)
29 return std::find_if(cont.begin(), cont.end(), pred);