https://github.com/televisionninja/cpplib
A collection of some c++ functions
https://github.com/televisionninja/cpplib
cpp docker library utilities
Last synced: about 2 months ago
JSON representation
A collection of some c++ functions
- Host: GitHub
- URL: https://github.com/televisionninja/cpplib
- Owner: TelevisionNinja
- License: mit
- Created: 2021-11-06T13:57:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-23T07:51:01.000Z (over 1 year ago)
- Last Synced: 2025-02-23T08:28:30.807Z (over 1 year ago)
- Topics: cpp, docker, library, utilities
- Language: C++
- Homepage:
- Size: 285 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cppLib
A collection of c++ functions and data structures. The minimum C++ version is C++20
Subjects that this library covers:
- arrays & vectors
- math
- strings
- data structures
Arrays & Vectors:
- utilities to manipulate arrays & vectors
- search
Math:
- general math functions
- integration methods
- root finding methods
- vector operations
- fast fourier transform
- complex numbers
- dual numbers
Strings:
- utilities to manipulate strings
- search
- edit distance
Data Structures:
- binary heap
- doubly linked list
# Build and Run Tests
## Native
```bash
g++ -std=c++23 -Wall ./tests/*.cpp ./src/*.cpp -o ./test.exe
./test.exe
```
## Make
```bash
make
./test.exe
```
## Docker or Podman
### Docker
```bash
docker build -t cpplib_image .
docker run --replace --name cpplib_container cpplib_image
```
### Podman
```bash
podman build -t cpplib_image .
podman run --replace --name cpplib_container cpplib_image
```