mirror of https://github.com/PrimeDecomp/prime.git
15 lines
326 B
C++
15 lines
326 B
C++
#ifndef _RSTL_ALGORITHM_HPP
|
|
#define _RSTL_ALGORITHM_HPP
|
|
|
|
#include "rstl/pointer_iterator.hpp"
|
|
|
|
namespace rstl {
|
|
template < class Iter, class T >
|
|
inline Iter find(Iter first, Iter last, const T& val) {
|
|
while (first != last && !(*first == val))
|
|
++first;
|
|
return first;
|
|
}
|
|
} // namespace rstl
|
|
#endif // _RSTL_ALGORITHM_HPP
|