A struct providing convenience functions for hashing elements. More...
#include <elem_hash.h>
Public Member Functions | |
std::size_t | operator() (const Elem *elem) const |
bool | operator() (const Elem *lhs, const Elem *rhs) const |
A struct providing convenience functions for hashing elements.
The ElemHashUtils struct defines functions used for the "Hash" and "Pred" template arguments of the various "unordered" containers, e.g. template <class Key, // unordered_multiset::key_type/value_type class Hash = hash<Key>, // unordered_multiset::hasher class Pred = equal_to<Key>, // unordered_multiset::key_equal class Alloc = allocator<Key> // unordered_multiset::allocator_type > class unordered_multiset;
Definition at line 46 of file elem_hash.h.
|
inline |
The "Hash" template argument. A custom hash functor that can be used with the "unordered" container types.
Definition at line 56 of file elem_hash.h.
References libMesh::Elem::key().
Satisfies the requirements of the "Pred" template parameter of the standard hash containers. We need to specify this in order to use the unordered_multiset, otherwise it just uses std::equal_to to compare two pointers...
true
if the two Elem keys are equal, false
otherwise. Definition at line 70 of file elem_hash.h.
References libMesh::Elem::key().