6 #include <boost/range/algorithm/find.hpp>
18 template <
typename Cont>
19 std::vector<typename Cont::value_type>
24 return {begin(cont), end(cont)};
29 template <
typename T,
typename Alloc>
32 has(
const std::vector<T, Alloc>& s,
const T& e)
34 return boost::find(s, e) != std::end(s);
40 template <
typename T,
typename Alloc>
41 struct hash<vector<T, Alloc>>
46 for (
const auto&
v: vs)
void hash_combine(std::size_t &seed, const T &v)
std::vector< typename Cont::value_type > make_vector(const Cont &cont)
The content of cont as a vector.
size_t operator()(const std::vector< T, Alloc > &vs) const
ATTRIBUTE_PURE bool has(const boost::container::flat_set< Key, Compare, Allocator > &s, const Key &e)
Whether e is member of s.