2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-01 20:42:11 +00:00

Merged r64026 (adding unordered_set to set_contains) from trunk

[SVN r64047]
This commit is contained in:
Jeremiah Willcock
2010-07-15 15:41:18 +00:00
parent eae116a598
commit a84b41c331

View File

@@ -7,6 +7,7 @@
#define BOOST_SET_ADAPTOR_HPP
#include <set>
#include <boost/unordered_set.hpp>
namespace boost {
@@ -15,6 +16,11 @@ namespace boost {
return s.find(x) != s.end();
}
template <class K, class H, class C, class A, class T>
bool set_contains(const boost::unordered_set<K,H,C,A>& s, const T& x) {
return s.find(x) != s.end();
}
template <class K, class C, class A>
bool set_equal(const std::set<K,C,A>& x,
const std::set<K,C,A>& y)