WIPIVERSE All articles

C++

C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes." The language has expanded significantly over time, and modern C++ now has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation. It is designed with a bias toward system programming and embedded, resource-constrained software and large systems, with performance, efficiency, and flexibility of use as its design highlights.

History Development of C++ began in 1979 at Bell Labs. Stroustrup found that Simula had features that were very helpful for large software development, but the language was too slow for practical use, while BCPL was fast but too low-level for large systems. He chose C as the base language because it was general-purpose, fast, portable, and widely used. The first commercial implementation of C++ was released in 1985.

Standardization C++ is standardized by the International Organization for Standardization (ISO), with the latest standard version ratified and published by ISO in December 2024 as ISO/IEC 14882:2024 (informally known as C++23). Previous major standards include C++98, C++03, C++11, C++14, C++17, and C++20. Each revision introduces new language features and standard library improvements.

Key Features

  • Object-Oriented Programming: Supports classes, inheritance, polymorphism, encapsulation, and abstraction.
  • Generic Programming: Templates allow writing type-independent code; the Standard Template Library (STL) provides generic containers, algorithms, and iterators.
  • Memory Management: Supports manual memory management (via new/delete and smart pointers) and RAII (Resource Acquisition Is Initialization) for deterministic resource cleanup.
  • Low-Level Access: Provides direct hardware access via pointers, bit manipulation, and inline assembly.
  • Compile-Time Computation: Features constexpr, template metaprogramming, and concepts (since C++20) for performing calculations during compilation.

Usage C++ is widely used in systems software (operating systems, drivers), application software (browsers, office suites), game engines (Unreal Engine, Unity backend), high-performance computing, real-time systems, and embedded firmware. Its performance characteristics make it a primary choice for latency-critical applications.

Compiler Support Major compilers supporting C++ include GCC (GNU Compiler Collection), Clang (LLVM), and Microsoft Visual C++ (MSVC). These compilers track the ISO standard closely, with varying levels of support for the latest features.

Browse

More topics to explore

    Browse all articles