|
BashSpark
|
Defines the bs::shell_hash functor implementing a 64-bit FNV-1a hash.
More...
#include <cstdint>#include <string>

Go to the source code of this file.
Classes | |
| struct | bs::shell_hash |
| Custom hash functor for strings using the 64-bit FNV-1a algorithm. More... | |
| struct | bs::shell_hash_view |
| Custom hash functor for strings using the 64-bit FNV-1a algorithm. More... | |
Namespaces | |
| namespace | bs |
| BashSpark main namespace. | |
Defines the bs::shell_hash functor implementing a 64-bit FNV-1a hash.
This file contains the bs::shell_hash struct, a hashing functor compatible with std::unordered_map and similar containers. It implements the standard 64-bit FNV-1a hashing algorithm, which is simple, fast, and effective for non-cryptographic use.
This file is part of BashSpark. Copyright (C) 2025 Dante Doménech Martínez
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.