|
fourdst::libcomposition v2.0.1
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 428 of file atomicSpecies.h.
|
inlinenoexcept |
Computes the hash for a Species object.
| s | The Species object to hash. |
Definition at line 434 of file atomicSpecies.h.