talira

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

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.

  1. Rust A language empowering everyone to build reliable and efficient software.
  2. Java The destination for Java developers
  3. Mojo The systems language for the AI era
  4. V Simple, fast, safe, compiled. For developing maintainable software
  5. Pony An open-source, object-oriented, actor-model, capabilities-secure, high-performance programming language
  6. Hare A systems programming language designed to be simple, stable, and robust

Compare C++ with the top 3