#pragma once #include #include "exist.hh" template bool Exist::operator()(T x) { if (std::find(seen_.begin(), seen_.end(), x) == seen_.end()) { seen_.push_back(x); return false; } return true; }