![]() |
OpenMS
|
Hash function for OpenMS::EmpiricalFormula. More...
#include <OpenMS/CHEMISTRY/EmpiricalFormula.h>
Public Member Functions | |
| std::size_t | operator() (const OpenMS::EmpiricalFormula &ef) const noexcept |
Hash function for OpenMS::EmpiricalFormula.
Computes a hash based on element symbols and their counts, plus the charge. The hash is consistent with operator==.
Design decisions:
|
inlinenoexcept |
References OpenMS::fnv1a_hash_string(), OpenMS::hash_combine(), and OpenMS::hash_int().