First pass linklist

This commit is contained in:
Cuyler36
2023-11-28 11:17:10 -05:00
parent b61bf26bdb
commit fa466b571b
4 changed files with 425 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#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