Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Learn more →
Top 23 C++ cpp-library Projects
-
C++ REST SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
-
Project mention: PocketPy: A Lightweight(~5000 LOC) Python Implementation in C++17 | reddit.com/r/cpp | 2023-02-06
-
InfluxDB
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
-
DirectXTK
The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
DirectXTK 12 (includes SimpleMath and other goodies)
-
DirectXTex
-
It would be easy to make the runtime use polymorphic allocators, one for the temporary objects created by update_methods, and another for the hash and dispatch tables. The first allocator could use the stack (like this), and the second a block in the BSS segment.
-
-
DirectXMath
DirectXMath is an all inline SIMD C++ linear algebra library for use in games and graphics apps
Alongside MiniEngine, you’ll want to look into the DirectX Toolkit. This is a set of utilities by Microsoft that simplify graphics and game development. It contains libraries like DirectXMesh for parsing and optimizing meshes for DX12, or DirectXMath which handles 3D math operations like the OpenGL library glm. It also has utilities for gamepad input or sprite fonts. You can see a list of the headers here to get an idea of the features. You’ll definitely want to include this in your project if you don’t want to think about a lot of these solved problems (and don’t have to worry about cross-platform support).
-
Sonar
Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
DirectXTK12
The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
DirectXTK 12 (includes SimpleMath and other goodies)
-
lithium
Easy to use C++17 HTTP Server with no compromise on performances. https://matt-42.github.io/lithium
-
fast_float
Fast and exact implementation of the C++ from_chars functions for float and double types: 4x faster than strtod, part of GCC 12
-
-
Project mention: Library that could generate vectorized code for different instruction sets? | reddit.com/r/cpp | 2023-01-14
Here is a doc on how we suggest to do it: https://jfalcou.github.io/eve/multiarch.html Here is complete code of that example: https://github.com/jfalcou/eve/tree/main/examples/multi-arch
-
Project mention: Is there a single header sha1 library for C++? | reddit.com/r/cpp_questions | 2022-11-02
-
Project mention: Automatic Serialization in C++ for Game Engines | IndieGameDev | reddit.com/r/cpp | 2022-03-29
Interesting read. I’ve personally used libnop in a few of my personal projects and I’ve liked it quite well.
-
Project mention: 200 lines of code to rewrite the 600'000 lines RocksDB into a coroutine programx | reddit.com/r/cpp | 2022-12-05
Finally, the PhotonLibOS project is open sourced at https://github.com/alibaba/PhotonLibOS. If you are interested in C++ coroutines and high-performance IO, welcome to have a try.
-
matchit.cpp
match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.
Project mention: The pattern matching library match(it) gets its first stable release. | reddit.com/r/cpp | 2022-08-30FYI. Now we've supported Id and Id to return lvalue ref and rvalue ref in addition to the original Id returning const lvalue ref, making the solution much more elegant now. Refer to the complete sample at https://github.com/BowenFu/matchit.cpp/blob/main/sample/mutation.cpp.
-
Project mention: Question about the return type of inherited member functions. | reddit.com/r/cpp_questions | 2022-03-18
Some examples are Matrix Template Library, Blitz++, Expression Template Library, the popular Eigen and the industry standard Armadillo.
-
The only one that is relatively lightweight (and doesn't have dependencies) is vuh (https://github.com/Glavnokoman/vuh) that looks unsupported.
-
-
Project mention: ntoskrnl7/crtsys: C/C++ Runtime library for system file (Windows Kernel Driver) | reddit.com/r/cpp | 2022-06-30
Thanks for mentioning https://github.com/jxy-s/stlkrn. It does look better than the OP's library from first inspection. I note it changes default allocators to ones which use pools.
-
Project mention: Best way to consume CMake based C lib in Swift for iOs/desktop | reddit.com/r/swift | 2022-06-07
You can use Scapix Language Bridge to call C++ code from Swift. It is using CMake integration.
-
borealis
Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C++ cpp-library related posts
- Announcing YOMM2 version 1.3.1
- Learning DirectX 12 in 2023
- Where can I learn directX
- 200 lines of code to rewrite the 600'000 lines RocksDB into a coroutine programx
- C++ REST API Framework
- (Yet another) Update on LibRapid for C++
- Is there a single header sha1 library for C++?
-
A note from our sponsor - Sonar
www.sonarsource.com | 7 Feb 2023
Index
What are some of the best open-source cpp-library projects in C++? This list will help you:
Project | Stars | |
---|---|---|
1 | C++ REST SDK | 7,189 |
2 | GLM | 7,152 |
3 | DirectXTK | 2,214 |
4 | DirectXTex | 1,455 |
5 | BDE | 1,449 |
6 | rang | 1,323 |
7 | DirectXMath | 1,242 |
8 | DirectXTK12 | 1,136 |
9 | lithium | 1,091 |
10 | fast_float | 990 |
11 | QuickQanava | 896 |
12 | q | 869 |
13 | eve | 558 |
14 | PicoSHA2 | 537 |
15 | libnop | 512 |
16 | PhotonLibOS | 510 |
17 | matchit.cpp | 434 |
18 | blitz | 345 |
19 | vuh | 324 |
20 | DuckX | 308 |
21 | stlkrn | 280 |
22 | scapix | 275 |
23 | borealis | 210 |