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::variantarrives in C++17, so aunionplus 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
importdoes 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:
constis 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::mapkeeps key order andstd::unordered_mapdoes 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_ptrandshared_ptrput 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_castand 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_ptrcycles leak; the standard requires the cycle to be broken by hand (M7)
1.1.4 Error
- ✅ A structured path exists:
throwandcatchcarry a failure from where it is raised to where it is handled (Er1) - ❌ A failure may arrive undeclared:
throwneeds 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::threadruns 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, andstd::asyncstate 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
#ifdeftree 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:
assertis 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_clockpublishes 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?
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
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:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193