mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 06:34:18 -04:00
20 lines
310 B
C++
20 lines
310 B
C++
#ifndef ALGORITHM_H
|
|
#define ALGORITHM_H
|
|
|
|
#include "types.h"
|
|
|
|
namespace std {
|
|
|
|
template <class InputIterator, class Predicate>
|
|
inline
|
|
InputIterator
|
|
find_if(InputIterator first, InputIterator last, Predicate pred) {
|
|
while (first != last && !pred(*first))
|
|
++first;
|
|
return first;
|
|
}
|
|
|
|
} // namespace std
|
|
|
|
#endif
|