mirror of
https://github.com/encounter/ac-decomp.git
synced 2026-03-30 10:57:04 -07: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
|