https://github.com/kuro337/modern-cpp
Just a repo of good idiomatic C++ code snippets I tend to find useful.
https://github.com/kuro337/modern-cpp
cpp cpp14 cpp17 cpp21
Last synced: 4 months ago
JSON representation
Just a repo of good idiomatic C++ code snippets I tend to find useful.
- Host: GitHub
- URL: https://github.com/kuro337/modern-cpp
- Owner: kuro337
- Created: 2023-06-10T00:23:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T02:47:00.000Z (almost 3 years ago)
- Last Synced: 2025-10-07T10:47:18.289Z (9 months ago)
- Topics: cpp, cpp14, cpp17, cpp21
- Language: C++
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
███╗ ███╗ ██████╗ ██████╗ ███████╗██████╗ ███╗ ██╗ ██████╗██████╗ ██████╗
████╗ ████║██╔═══██╗██╔══██╗██╔════╝██╔══██╗████╗ ██║ ██╔════╝██╔══██╗██╔══██╗
██╔████╔██║██║ ██║██║ ██║█████╗ ██████╔╝██╔██╗ ██║ ██║ ██████╔╝██████╔╝
██║╚██╔╝██║██║ ██║██║ ██║██╔══╝ ██╔══██╗██║╚██╗██║ ██║ ██╔═══╝ ██╔═══╝
██║ ╚═╝ ██║╚██████╔╝██████╔╝███████╗██║ ██║██║ ╚████║ ╚██████╗██║ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝
```
# Modern C++
- Just a repo of good C++ code I write and find useful.
- My environment
- `g++ (GCC)`
- `Ubuntu 20.04.2 LTS`
- `Linux 5.8.0-53-generic x86_64`
- Mostly `C++17` and `C++20`
- Docker with `Ubuntu 20.04.2 LTS` and `g++ (GCC)` or `clang++ (LLVM)` for uniform build and deployments
- Reference build and run
```bash
# Development
g++ -std=c++20 -o quicksort quicksort.cpp && ./quicksort
# Production
g++ -std=c++20 -O3 -o quicksort quicksort.cpp && ./quicksort
```
- `huffmanEncoding.cpp` - implementation of Huffman Encoding in `C++20` using an `Unbalanced Binary Tree`, `std::map`, `std::priority_queue`, and `std::bitset`.