diff options
Diffstat (limited to 'graphs/cpp/exist_functor/exist.hh')
| -rw-r--r-- | graphs/cpp/exist_functor/exist.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphs/cpp/exist_functor/exist.hh b/graphs/cpp/exist_functor/exist.hh new file mode 100644 index 0000000..49cafd6 --- /dev/null +++ b/graphs/cpp/exist_functor/exist.hh @@ -0,0 +1,14 @@ +#pragma once +#include <vector> + +template <class T> +class Exist +{ +public: + bool operator()(T x); + +private: + std::vector<T> seen_; +}; + +#include "exist.hxx" |
