6 #include <boost/range/algorithm/find.hpp> 16 template <
typename Cont>
17 std::vector<typename Cont::value_type>
22 return {begin(cont), end(cont)};
27 template <
typename T,
typename Alloc>
30 has(
const std::vector<T, Alloc>& s,
const T& e)
32 return boost::find(s, e) != std::end(s);
38 template <
typename T,
typename Alloc>
39 struct hash<vector<T, Alloc>>
44 for (
const auto&
v: vs)
ATTRIBUTE_PURE bool has(const boost::container::flat_set< Key, Compare, Allocator > &s, const Key &e)
Whether e is member of s.
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
void hash_combine(std::size_t &seed, const T &v)