C++ (C++11)

Analysis against C++11 (ISO/IEC 14882:2011): threads, std::chrono, unordered containers, move semantics, and the smart pointers are in the standard; std::variant (C++17) and modules (C++20) are not. The family’s C++23 page assesses the current release.

This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot C++11 — released September 2011 · lifecycle superseded (Replaced by C++14 and later; a current compiler accepts it as an opt-in mode.)

Family C++ — shelf: Systems

The language exists to control memory and hardware directly: a runtime is optional, and layout is the programmer’s business. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory C with Classes (1979 — first implementation, Bjarne Stroustrup) · 98 (1998 — first ISO standard; templates — assessed release) · 11 (September 2011 — move semantics and lambdas, threads, smart pointers — assessed release) · 20 (December 2020 — concepts and modules) · 23 (October 2024 — ISO/IEC 14882:2024)

Tags

Use — Application, Systems, Embedded

Paradigm — Object-oriented, Imperative

Platform — Native, Embedded target

Lifecycle — Superseded

Memory — Manual

Typing — Static, weak

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to C++11; an unmarked link is the current reference for the language.

Landing page

Specification and reference

API documentation

Tutorial

1 Assessment

This page assesses C++11 in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 53.1/100 · Ecosystem coupling 72.7/100 · Engineering readiness 43.3/100

1.1 Core coupling

1.1.1 Type

  • ❌ A conversion narrows in silence: the conversion table is a shared resource no reader is forced to hold, so a checked expression cannot be told from a narrowed one (T2)
  • ❌ No sum type in the standard: std::variant arrives in C++17, so a union plus a tag remains the encoding and every consumer re-derives which member is live (T4)
  • ❌ An operator takes its meaning from the operand types: << shifts and inserts, and a reader resolves the type to know which (T8)
  • ❌ A pointer may be null and the type does not say so: each consumer writes the guard, and an omission stays invisible (T10)
  • ❌ A header is the only surface, and import does not exist: a module boundary arrives in C++20, so a header’s declarations are all public (T11)
  • ❌ A signature states no effects: a call may write a file, mutate a global, and throw, and the signature names only the return type (T12)
  • ❌ extern "C" is a hand-written promise: argument order, layout, and lifetime cross a boundary that neither compiler validates (T14)

1.1.2 Construction

  • ❌ A binding is mutable until the code says otherwise: const is opt-in, and every holder reconstructs who may write (C2)
  • ✅ Placement construction separates storage from construction: an object is built in storage the caller already holds (C3)
  • ⚠️ The hash container ships with an unpinned order: std::map keeps key order and std::unordered_map does not, so a program that reaches for the hash container keeps the ordering discipline itself (C5)
  • ❌ One value, many names: a pointer, a reference, a member, and a parameter reach one object, and the declaration names none of the sharers (C6)
  • ❌ Execution moves with no call in sight: a converting constructor and a conversion operator run from the contexts the standard names, not from a call the source shows (C7)
  • ❌ The static initialization order fiasco: namespace-scope init order across translation units is implementation-defined [5] (C8)

1.1.3 Memory

  • ✅ Destructors run at scope exit: the release is deterministic, and unique_ptr and shared_ptr put the owner in the type
  • ❌ A raw pointer still names no owner: two pointers can share one buffer with no way to say which frees it (M4)
  • ❌ Storage arrives uninitialized: default-initialization leaves scalars indeterminate, and reading one before a write is undefined behaviour (M5)
  • ❌ Bytes can be read as a type they never were: a reinterpret_cast and an unchecked downcast reinterpret storage with no check (M6)
  • ❌ The undeclared class has no catch: a wild pointer’s trap ends the program outside every catch clause (Er6)
  • ❌ shared_ptr cycles leak; the standard requires the cycle to be broken by hand (M7)

1.1.4 Error

  • ✅ A structured path exists: throw and catch carry a failure from where it is raised to where it is handled (Er1)
  • ❌ A failure may arrive undeclared: throw needs no signature entry, and no caller is required to handle it (Er2)
  • ❌ A failure is not an ordinary value: nothing folds a fallible operation into an expression, so each level rebuilds the pair (Er4)
  • ❌ A fault ends the program: an uncaught exception in a thread calls std::terminate, and the thread is not an isolation unit (Er5)

1.1.5 Concurrency

  • ✅ Threads are in the standard: std::thread runs a second computation inside the program’s own structure (K1)
  • ⚠️ Shared state is the default: nothing marks a value thread-local or immutable (K2)
  • ⚠️ Nothing detects a race: the locking discipline is an agreement across files that no tool checks (K3)
  • ⚠️ No scope joins a task: a thread started without a scope can outlive the code that started it (K4)
  • ✅ Locks, atomics, and futures are in the standard: std::mutex, std::atomic, and std::async state the protocol in the source (K5)
  • ❌ A concurrent task is an operating-system thread: each task holds a thread for its whole life, and a blocked task holds one too (K6)

1.1.6 Platform

  • ✅ No vendor owner: the language is standardised by ISO/IEC, and independent compilers implement it
  • ✅ No required runtime: a program compiles to native code and needs no vendor service
  • ✅ Every mainstream target is supported: compilers exist for the operating systems and embedded targets of the era

1.1.7 Trade-offs (not coupling)

  • Zero-cost abstraction vs. reading time: templates and inline code remove runtime cost and add ceremony at every declaration
  • Placement construction vs. readability: building an object in storage the caller chose is a precise control, and the reader reconstructs where that storage came from

1.2 Ecosystem coupling

1.2.1 Performance

  • ✅ Compiled to native code: no interpreter dispatch sits in the hot loop
  • ✅ No collector: release timing is the program’s, not a runtime component’s

1.2.2 Ecosystem

  • ❌ No package manager: a dependency is resolved by a build script or by the platform’s toolchain, so two checkouts can disagree about the graph (Ec1)
  • ❌ Fragmented tooling: the language is split across platform toolchains with different extensions and warning sets (Ec2)
  • ❌ No cross-release binary promise: libstdc++ documents that binaries built with one GNU release are incompatible with binaries built with another [6] (Ec8)

1.2.3 Evolution

  • ❌ Build variants multiply: the preprocessor’s #ifdef tree selects which declarations reach the compiler, so a translation unit is a flag outcome (V7)
  • ✅ A three-year cadence begins: C++11 was the first feature revision after thirteen years, and the committee has shipped one every three years since
  • ✅ Additive: the revision removed almost nothing, so C++98 code compiles under it

1.2.4 Domain

  • ✅ Close to the machine: the language serves systems, games, and embedded work
  • ⚠️ Not a web or scripting language: the work it fits least is the work it is least used for

1.2.5 Learning

  • ❌ Steep: templates, multiple inheritance, manual memory, and undefined behaviour build on nothing a mainstream background supplies (L1)
  • ❌ Several paradigms at once: procedural, object-oriented, and generic code all remain available for the same task (L2)
  • ✅ An authoritative standard text and a large literature: the reference is public and complete

1.2.6 Syntax

  • ⚠️ Nested instantiations tax the reader: a template argument can itself be an instantiation, and the reader unfolds the chain to know the type it produces
  • ✅ Declarations state types once: the reader resolves a type at its declaration rather than at each use

1.2.7 Testing

  • ⚠️ Testing arrives from outside the toolchain: assert is in the library and no runner is, so a framework and a runner are adopted per project
  • ✅ A mature debugger exists for every platform: the toolchain is the platform’s, and it steps through the source
  • ✅ A monotonic clock is in the standard: std::chrono::steady_clock publishes an elapsed reading that the program can call (G4)

1.2.8 Security

  • ❌ Memory-unsafe: a buffer overflow, a use-after-free, and a double free all compile, and any pointer suffices (Q1)
  • ❌ The inherited C rule: signed overflow undefined, unsigned modulo; the optimizer exploits both (Q4)

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
vcpkg and Conan recipes source no A recipe builds from source on the consumer machine
shared library compiled yes no — libstdc++ documents that binaries built with one GNU release are incompatible with binaries built with another, and mixing C++ ABIs is not recommended [6]

1.3 Engineering readiness

1.3.1 Reproducibility

  • ❌ Builds are not byte-reproducible by default: timestamps and absolute paths reach the artifact, so a third party cannot confirm it matches the source (Y1)

1.3.2 Supply chain

  • ❌ No registry, so no signed provenance: a dependency is a source tree or a library, and its origin is taken on trust (Y3)

1.3.3 Observability

  • ❌ A failure leaves no post-mortem by default: without a debugger and an enabled core dump, an unhandled failure prints nothing (Y15)

1.3.4 Feedback

  • ❌ A change pays a slow build: templates and a long link step sit on the critical path of every edit (Y7)

1.3.5 Interop

  • ✅ A general foreign-function interface exists: the platform’s C ABI is the boundary, and the language calls it directly (Y9)

1.3.6 Governance

  • ❌ An open standard with no conformance suite: the standard lists implementation-defined behaviour, and the committee publishes no suite an independent implementation runs (Y17)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ✅ Compiles to native code: the fastest class in the language energy and time benchmarks [7], [8]. A causal re-analysis attributes the difference to execution time [9].

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ✅ A large training corpus and strong code-generation results: models write this language well [10], [11].

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ✅ A standards-qualified toolchain or an established safety standard covers this language.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language — 0
T2 weak static language ✅ −8
T3 dynamic/duck dispatch language — 0
T4 no sum types language ✅ −4
T5 no generics language — 0
T6 no namespaces language — 0
T7 type erasure/reflection language — 0
T8 operator overloading language ✅ −4
T9 inheritance required for polymorphism language — 0
T10 no null-safety language ✅ −8
T11 no module boundary language ✅ −8
T12 no effect tracking language ✅ −8
T13 async/sync colouring language — 0
T14 unchecked foreign boundary language ✅ −4
T15 chars are encoding units language — 0
Type cost −12.6 (−44)
Construction C1 global mutable state by default language — 0
C2 no immutability by default language ✅ −4
C3 constructors coupled to allocation language — 0
C4 no constructor/validation language — 0
C5 unpinned collection order language ✅ −4
C6 aliasing by default language ✅ −8
C7 undeclared control transfer language ✅ −8
C8 no source-visible init order language ✅ −8
Construction cost −9.1 (−32)
Memory M1 manual deallocation runtime — 0
M2 GC non-deterministic pauses runtime — 0
M3 no RAII language — 0
M4 no ownership model language ✅ −8
M5 uninitialized reads language ✅ −8
M6 unchecked reinterpretation language ✅ −8
Er6 uncatchable runtime fault language ✅ −8
M7 reference cycles leak runtime ✅ −8
Memory cost −11.4 (−40)
Error Er1 no structured path language — 0
Er2 unchecked exceptions only language ✅ −8
Er3 errors ignored/non-exhaustive language — 0
Er4 no composable result type language ✅ −4
Er5 no isolation unit for a fault runtime ✅ −8
Error cost −5.7 (−20)
Concurrency K1 GIL/no parallel runtime — 0
K2 shared mutable state default language ✅ −8
K3 manual sync no race detection runtime ✅ −8
K4 no structured concurrency language ✅ −4
K5 no primitives language — 0
K6 thread-per-task cost runtime ✅ −8
Concurrency cost −8.0 (−28)
Platform P1 cannot function outside one vendor/domain context — 0
P2 single-vendor but other uses context — 0
P3 legacy/discontinued platform context — 0
P4 poor domain fit context — 0
Platform cost 0

Core coupling score: 53.1/100 — 164 of the 350 inventory points are present, so the axis cost is 100 × 164 ÷ 350 = 46.9 and the score is 100 − 46.9. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime — 0
R2 GC pauses runtime — 0
R3 JIT warmup runtime — 0
Performance cost 0
Ecosystem Ec1 no package manager context ✅ −4
Ec2 fragmented tooling context ✅ −8
Ec3 small/niche/discontinued context — 0
Ec4 proprietary context — 0
Ec5 platform-locked tooling context — 0
Ec6 monoculture context — 0
Ec7 legacy burden context — 0
Ec8 unpromised binary boundary context ✅ −8
Ec9 unpromised data boundary context — 0
Ecosystem cost −7.8 (−20)
Evolution V1 breaking changes language — 0
V2 frozen context — 0
V3 discontinued context — 0
V4 glacial standards context — 0
V5 silent default drift runtime — 0
V7 build-variant state space context ✅ −8
Evolution cost −3.1 (−8)
Domain D1 domain/vendor lock-in context — 0
D3 framework forces architecture context — 0
Domain cost 0
Learning L1 steep context ✅ −8
L2 large surface/multi-paradigm context ✅ −4
L3 sparse docs context — 0
Learning cost −4.7 (−12)
Syntax S1 verbose language — 0
S2 inconsistent language — 0
S3 punctuation-heavy language — 0
Syntax cost 0
Testing G1 weak tooling context — 0
G2 poor debugging context — 0
G3 runtime-only errors context — 0
G4 no published monotonic clock runtime — 0
Testing cost 0
Security Q1 memory-unsafe language ✅ −15
Q2 dynamic/weak typing risk language — 0
Q3 known vulnerability/injection context — 0
Q4 silent integer overflow language ✅ −15
Security cost −11.7 (−30)

Ecosystem coupling score: 72.7/100 — 70 of the 256 inventory points are present, so the axis cost is 100 × 70 ÷ 256 = 27.3 and the score is 100 − 27.3. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context ✅ −15
Y2 dependencies not pinned context ✅ −8
Y14 no toolchain version pin context ✅ −8
Y18 no machine-read project contract context — 0
Reproducibility cost −18.1 (−31)
Supply chain Y3 no signed provenance context ✅ −15
Y4 registry without namespacing context — 0
Y16 no advisory feed context ✅ −8
Supply chain cost −13.5 (−23)
Observability Y5 no stable tracing standard context — 0
Y6 no structured logging context ✅ −4
Y15 no post-mortem diagnostics runtime ✅ −8
Observability cost −7.0 (−12)
Feedback Y7 slow build context ✅ −15
Y8 no fast in-editor analysis context — 0
Y13 no bundled debugger context ✅ −8
Feedback cost −13.5 (−23)
Interop Y9 no foreign-function interface language — 0
Y10 no portable target context — 0
Interop cost 0
Governance Y11 single-vendor governance context — 0
Y12 closed specification context — 0
Y17 no conformance mechanism context ✅ −8
Y19 no published parser context — 0
Governance cost −4.7 (−8)

Engineering readiness score: 43.3/100 — 97 of the 171 inventory points are present, so the axis cost is 100 × 97 ÷ 171 = 56.7 and the score is 100 − 56.7. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: C++11 is the revision that put concurrency, ownership transfer, and a monotonic clock into the language. std::thread, std::mutex, and std::atomic answer the missing coordination primitives. Move semantics and the smart pointers state an owner that raw pointers never named. Unordered containers arrive: the hash container’s iteration order becomes something a program must not rely on, while std::map keeps key order. What the standard still does not provide: a sum type (C++17), a module boundary (C++20), and a composable failure value (C++23). Main strength: the era’s most complete zero-overhead toolkit. Main weakness: raw pointers, unchecked casts, and the preprocessor remain, so the guarantees depend on idiom.


The formal development. The definitions, theorems, and proofs behind this page are published in:

All published papers

References

[1]
Y. Loth, “On the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, “Coupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, “On the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]
ISO/IEC JTC 1/SC 22, “Programming languages — C++.” International Organization for Standardization; International Standard ISO/IEC 14882:2011, Geneva, Switzerland, 2011.
[5]
H. Sutter and T. van der Meer, “Static initialization order fiasco,” C++ Report, vol. 11, no. 4, 1999.
[6]
GNU Project, “libstdc++ ABI policy and guidelines.” Free Software Foundation, 2026. Available: https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html
[7]
R. Pereira et al., “Energy efficiency across programming languages: How do energy, time, and memory relate?” in Proceedings of the 10th ACM SIGPLAN international conference on software language engineering (SLE), 2017, pp. 256–267. doi: 10.1145/3136014.3136031.
[8]
R. Pereira et al., “Ranking programming languages by energy efficiency,” Science of Computer Programming, 2021, doi: 10.1016/j.scico.2021.102609.
[9]
N. van Kempen, H.-J. Kwon, D. T. Nguyen, and E. D. Berger, “It’s not easy being green: On the energy efficiency of programming languages,” in Proceedings of the 40th IEEE/ACM international conference on automated software engineering (ASE), 2025. doi: 10.1109/ASE63991.2025.00131.
[10]
S. Joel, J. J. Wu, and F. H. Fard, “A survey on LLM-based code generation for low-resource and domain-specific programming languages,” ACM Transactions on Software Engineering and Methodology, 2025, doi: 10.1145/3770084.
[11]
Y. Qing et al., “EffiBench-x: A multi-language benchmark for measuring efficiency of LLM-generated code,” in Advances in neural information processing systems 38 (NeurIPS), datasets and benchmarks track, 2025. doi: 10.48550/arXiv.2505.13004.