A general-purpose programming language with a bias towards systems programming
defined by a standard
C++ is a general-purpose programming language with a bias towards systems programming. It began as a better C and supports data abstraction with classes, object-oriented programming with inheritance, generic programming with templates, and functional programming with lambdas, template metaprogramming and constexpr. It's defined by the ISO standard ISO/IEC 14882, maintained by the ISO C++ committee (WG21): the current standard is C++23 (ISO/IEC 14882:2024), and C++26 is in progress. Its design follows the zero-overhead principle: what you don't use you don't pay for, and what you do use you couldn't hand-code better. Compilers such as GCC, Clang and MSVC implement it; the Standard C++ Foundation runs isocpp.org, the C++ Core Guidelines and CppCon.
Libraries for C++
View 40 more
- qpdf
- llama.cpp
- BugSnag
- Adobe PDF Library
- Apache Casbin
- NVIDIA Dynamo-Triton
- OpenTelemetry
- OpenFeature
- Firebase Cloud Messaging
- LevelDB
- Apache OpenDAL
- V8
- Apryse SDK (WebViewer)
- Valhalla
- ONNX Runtime
- RE2
- ICU4X
- Wasmtime
- ALTCHA
- Firebase Authentication
- dora
- Open Source Routing Machine (OSRM)
- RocksDB
- TensorFlow
- MLX
- JavaScriptCore
- GoogleTest
- Apache Arrow
- Faiss
- chDB
- NW.js
- JSON for Modern C++
- libpcap
- APT
- Pipecat
- ModSecurity
- Socket.IO
- openFrameworks
- Tesseract
- spdlog
Browse all of them: 58 libraries, 12 frameworks, 15 APIs.
Problems it solves
- a fast compiled language for performance-critical systems software
- which language should I use for a game engine or real-time graphics
- write code with high-level abstractions that cost nothing at run time
- a language with decades of stability where old code still compiles
- control memory layout and allocation directly for embedded or low-latency work
- a language with a huge base of existing libraries for native desktop and systems software
Features
- classes and data abstraction
- object-oriented programming with inheritance and virtual functions
- generic programming with templates
- functional programming with lambdas and constexpr
- zero-overhead principle
- defined by the ISO standard ISO/IEC 14882
- C++ Core Guidelines
Alternatives
The same job
These do what C++ does.
- Rust A language empowering everyone to build reliable and efficient software.
- Java The destination for Java developers
- Mojo The systems language for the AI era
- V Simple, fast, safe, compiled. For developing maintainable software
- Pony An open-source, object-oriented, actor-model, capabilities-secure, high-performance programming language
- Hare A systems programming language designed to be simple, stable, and robust