Added boost::hash overloads for the other Surface_mesh index-based classes

This commit is contained in:
Mael Rouxel-Labbé
2017-06-22 16:14:55 +02:00
parent 23ac9a95c1
commit 8b464899d7
@@ -2633,6 +2633,30 @@ namespace boost {
}
};
template <>
struct hash<CGAL::SM_Halfedge_index > {
std::size_t operator()(const CGAL::SM_Halfedge_index& i) const
{
return i;
}
};
template <>
struct hash<CGAL::SM_Edge_index > {
std::size_t operator()(const CGAL::SM_Edge_index& i) const
{
return i;
}
};
template <>
struct hash<CGAL::SM_Face_index > {
std::size_t operator()(const CGAL::SM_Face_index& i) const
{
return i;
}
};
} // namespace boost
#endif /* CGAL_SURFACE_MESH_H */