+#include "easyfind.h"
+#include <iostream>
+#include <vector>
+#include <list>
+#include <set>
+
+template<typename T>
+void test_easyfind(T &cont, int needle)
+{
+ const int *found(easyfind(cont, needle));
+
+ if (found)
+ std::cout
+ << "Found needle " << needle
+ << " at address " << found << '\n';
+ else
+ std::cout << "Needle " << needle << " not found.\n";
+}
+
+int main(void)
+{
+ std::vector<int> vec;
+ std::list<int> list;
+
+ for (int i(0); i < 5; ++i)
+ {
+ vec.push_back(i);
+ list.push_back(2 * i + 5);
+ }
+ test_easyfind(vec, 3);
+ test_easyfind(list, 3);
+ test_easyfind(list, 7);
+ return (0);
+}