Files

21 lines
335 B
C++
Raw Permalink Normal View History

2023-11-28 11:17:10 -05:00
#ifndef ALGORITHM_H
#define ALGORITHM_H
#include "types.h"
2024-02-26 10:05:01 -08:00
#ifdef __cplusplus
2023-11-28 11:17:10 -05:00
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
2024-02-26 10:05:01 -08:00
#endif
2023-11-28 11:17:10 -05:00
#endif