https://github.com/oniani/bf
A zero-dependency, header-only, and minimal C++ bloom filter
https://github.com/oniani/bf
Last synced: about 2 months ago
JSON representation
A zero-dependency, header-only, and minimal C++ bloom filter
- Host: GitHub
- URL: https://github.com/oniani/bf
- Owner: oniani
- License: mit
- Created: 2022-03-17T13:42:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-21T13:13:59.000Z (about 4 years ago)
- Last Synced: 2025-03-02T10:08:12.225Z (over 1 year ago)
- Language: C++
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# project
A zero-dependency, header-only, and minimal C++ bloom filter.
## API
```cpp
#include "include/bf.hpp"
int main() {
auto bf = bf::BloomFilter{6, 1e-2};
bf.insert("hi");
}
```
## Build
```console
$ mkdir build
$ cd build
$ cmake -DCOMPILER=clang -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=VCPKG_TOOLCHAIN_FILE ..
$ cmake --build .
```
## References
- [Bloom filter][bloomfilter]
## License
[MIT License][license]
[bloomfilter]: https://en.wikipedia.org/wiki/Bloom_filter
[license]: LICENSE