C++ (C plus plus)
termKept in this browser · My desk
Bjarne Stroustrup's extension of C at Bell Labs, begun as C with Classes in 1979, named C++ in 1983 and released commercially in October 1985, adding Simula's classes to C's efficiency.
Stroustrup's history: C++ "was designed to provide Simula's facilities for program organization together with C's efficiency and flexibility for systems programming"; the current standard is C++23, ISO/IEC 14882:2024 (ISO is the International Organization for Standardization, IEC the International Electrotechnical Commission).
What it is. C++ is a general-purpose, compiled, statically typed language that extends C with classes, templates, exceptions and a large standard library while keeping C's model of memory: objects live in storage the programmer controls, and pointers can reach any of it. Bjarne Stroustrup's history of the language says it "was designed to provide Simula's facilities for program organization together with C's efficiency and flexibility for systems programming", and that only C, Simula, Algol68 and, in one case, BCPL (Basic Combined Programming Language) left noticeable traces in C++ as released in 1985.
Origin. Stroustrup began the work in April 1979 in Bell Laboratories' computing science research centre in Murray Hill, New Jersey; by October 1979 he had Cpre, a preprocessor that added Simula-like classes to C. C with Classes, from 1979 to 1983, fixed the shape of the language, and virtual functions arrived in 1983. The name C++ was suggested by Rick Mascitti and first used in a paper edited in December 1983: in C, ++ is the increment operator, readable as "next" or "successor". Stroustrup's compiler front end, Cfront, generated C so that the language could be ported quickly to any machine with a C compiler. Release 1.0 matched the book The C++ Programming Language and shipped in October 1985; release 2.0 added multiple inheritance in June 1989, and release 3.0 added templates in September 1991, as specified in the Annotated C++ Reference Manual, which also specified exception handling.
Standards and status. Stroustrup handed the definition to the American National Standards Institute (ANSI) C++ committee in early 1990, and the first International Organization for Standardization (ISO) standard, C++98, was ratified in 1998. The language is now maintained by Working Group 21 (WG21) of Subcommittee 22 (SC22) of Joint Technical Committee 1 (JTC1) of ISO and the International Electrotechnical Commission (IEC). The current standard is C++23, published as ISO/IEC 14882:2024: the Standard C++ Foundation explains that it is named for 2023, when the technical work was completed in February (the language-version macro is 202302L), while the :2024 suffix is administrative. C++26 is in progress. Since 2012 the committee has also shipped work as Technical Specifications, "feature branches" vendors may implement before the standard absorbs them, such as the concepts specification ISO/IEC TS 19217:2015. WG21 publishes its papers in regular mailings; its 2026 meetings included Croydon and Brno, and its late-2026 meeting is in Búzios, Brazil, with the post-meeting mailing due on 15 December 2026.
How it works. Source is compiled ahead of time to machine code; templates are expanded per type at compile time, which is why generic C++ code costs nothing at run time and why Rust's reference credits C++ for monomorphization. The language's signature idiom is RAII (Resource Acquisition Is Initialization): a resource such as heap memory, a file, a socket or a locked mutex is bound to the lifetime of an object, whose constructor acquires it and whose destructor releases it, in reverse order of acquisition, even when an exception unwinds the stack. Since C++11, move semantics transfer ownership of resources between objects and threads. A class with separate lock and unlock calls is the textbook non-RAII design: if a function between them throws, the mutex is never released.
Where it shows up. The Cybersecurity and Infrastructure Security Agency (CISA) paper cited below calls C and C++ memory-unsafe languages that "are still among the most widely used languages today". Large native code bases such as the Chromium browser are written in it: Chromium's network service, a large C++ component, parses very complex input from anyone on the network, which its security team treats as the most dangerous kind of code. That reach is why the language sits at the centre of the memory-safety debate.
What goes wrong. C++ kept C's model of memory, and with it C's hazards: the guidance of CISA, the National Security Agency (NSA) and partner agencies, The Case for Memory Safe Roadmaps (December 2023), names C and C++ as the memory-unsafe languages behind about 70 percent of Microsoft's common vulnerabilities and exposures (CVEs) from 2006 to 2018 and about 70 percent of the vulnerabilities in Google's Chromium; it adds that 32 of 34 critical or high Mozilla bugs analysed were memory safety bugs, and that Project Zero found 67 percent of 2021 zero-days to be memory safety vulnerabilities. Chromium's own page says around 70% of its high-severity security bugs are mistakes with C and C++ pointers, and half of those are use-after-free bugs. In MITRE's 2025 Common Weakness Enumeration (CWE) Top 25, out-of-bounds write ranks fifth (12 CVEs in CISA's Known Exploited Vulnerabilities catalogue), use after free seventh (14) and out-of-bounds read eighth. The same CISA paper notes that the C++ community is weighing backwards compatibility against memory-safety defaults, and lists subset and successor efforts such as Carbon.
What it gave others. C++ also gave the world templates and the RAII idiom that Rust adopted: Rust's reference lists references, RAII, smart pointers, move semantics, monomorphization and the memory model among its debts to C++. Java and C# took its syntax and object model and removed its pointers.
Neighbours. C, its base; Simula, its model of classes; Rust, the memory-safe systems language that answers it; Java and C#, its managed descendants; memory safety, use after free and buffer overflow, the bug classes it is most associated with.
Also known as: cpp, c plus plus, c with classes, c++23
Sources
- Bjarne Stroustrup, A History of C++: 1979-1991, HOPL II: Simula's program organization with C's efficiency; C with Classes 1979 to 1983; the name in 1983; release and book in October 1985 (read 2026-11-23)
- Standard C++ Foundation, The Standard: C++23 is ISO/IEC 14882:2024; C++26 in progress (read 2026-11-23)
- CISA, NSA, FBI and partners, The Case for Memory Safe Roadmaps, December 2023: about 70 percent of Microsoft CVEs and of Chromium vulnerabilities are memory safety issues (read 2026-11-23)
- ISO/IEC JTC1/SC22/WG21, The C++ Standards Committee, home page dated 2026-10-30 (read 2026-11-23): WG21 is the international standardization working group for C++; published standards and technical reports; 2026 mailings post-Croydon, pre- and post-Brno; pre-Búzios mailing October 2026 and post-Búzios mailing deadline 15 December 2026
- Standard C++ Foundation, Current Status (read 2026-11-23): C++26 work in progress; C++23 and many Technical Specifications published; since 2012 a decoupled model with feature-branch TSes
- cppreference, RAII (read 2026-11-23): Resource Acquisition Is Initialization binds a resource's life cycle to an object's lifetime; constructor acquires, destructor releases in reverse order of acquisition; move semantics since C++11; lock and unlock classes as non-RAII examples
- Bjarne Stroustrup, FAQ (read 2026-11-23): the first ISO C++ standard was C++98, ratified in 1998
- The Chromium Projects, Memory safety (read 2026-11-23): around 70% of high-severity security bugs are memory unsafety problems, mistakes with C and C++ pointers; half of those are use-after-free bugs
- MITRE, 2025 CWE Top 25 Most Dangerous Software Weaknesses (read 2026-11-23): CWE-787 out-of-bounds write 5th (12 KEV CVEs), CWE-416 use after free 7th (14), CWE-125 out-of-bounds read 8th (3)
- The Rust Reference, Influences (read 2026-11-23): from C++, references, RAII, smart pointers, move semantics, monomorphization and the memory model