mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 14:41:38 -04:00
21 lines
335 B
C++
21 lines
335 B
C++
#ifndef ALGORITHM_H
|
|
#define ALGORITHM_H
|
|
|
|
#include "types.h"
|
|
|
|
#ifdef __cplusplus
|
|
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
|
|
#endif
|