fourdst::libcomposition v1.5.2
Robust atomic species information library
|
Specialization of std::hash
for fourdst::atomic::Species
.
More...
#include <atomicSpecies.h>
Public Member Functions | |
size_t | operator() (const fourdst::atomic::Species &s) const noexcept |
Computes the hash for a Species object. | |
Specialization of std::hash
for fourdst::atomic::Species
.
This allows fourdst::atomic::Species
objects to be used as keys in unordered associative containers like std::unordered_map
and std::unordered_set
. The hash is computed based on the species' name (m_name
), as it is expected to be a unique identifier for each species.
Definition at line 425 of file atomicSpecies.h.
|
inlinenoexcept |
Computes the hash for a Species object.
s | The Species object to hash. |
Definition at line 431 of file atomicSpecies.h.