diff --git a/include/boost/graph/detail/set_adaptor.hpp b/include/boost/graph/detail/set_adaptor.hpp index eb81dbba..90a64a2c 100644 --- a/include/boost/graph/detail/set_adaptor.hpp +++ b/include/boost/graph/detail/set_adaptor.hpp @@ -7,6 +7,7 @@ #define BOOST_SET_ADAPTOR_HPP #include +#include namespace boost { @@ -15,6 +16,11 @@ namespace boost { return s.find(x) != s.end(); } + template + bool set_contains(const boost::unordered_set& s, const T& x) { + return s.find(x) != s.end(); + } + template bool set_equal(const std::set& x, const std::set& y)